Allows you to serialize object.
Map<String, dynamic> toJson() => {"securityObject": securityObject?.toJson()}.clearNulls();