toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final type = this.type;
  final displayName = this.displayName;
  final emailAddress = this.emailAddress;
  final id = this.id;
  final uri = this.uri;
  return {
    'Type': type.toValue(),
    if (displayName != null) 'DisplayName': displayName,
    if (emailAddress != null) 'EmailAddress': emailAddress,
    if (id != null) 'ID': id,
    if (uri != null) 'URI': uri,
  };
}