toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (customType != null) 'customType': customType!,
      if (emailAddress != null) 'emailAddress': emailAddress!,
      if (emailUrl != null) 'emailUrl': emailUrl!,
      if (primary != null) 'primary': primary!,
      if (type != null) 'type': type!,
    };