toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (creativeFieldId != null) 'creativeFieldId': creativeFieldId!,
      if (creativeFieldValueId != null)
        'creativeFieldValueId': creativeFieldValueId!,
    };