toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    if (links != null) r'_links': links,
    if (agreement != null) r'agreement': agreement,
    if (createdAt != null) r'createdAt': createdAt!.toUtc().toIso8601String(),
    if (email != null) r'email': email,
    if (enabled != null) r'enabled': enabled,
    if (familyName != null) r'familyName': familyName,
    if (givenName != null) r'givenName': givenName,
    if (id != null) r'id': id,
    if (jobTitle != null) r'jobTitle': jobTitle,
    r'optIn': optIn,
    if (preferences != null) r'preferences': preferences,
    if (telephone != null) r'telephone': telephone,
    if (type != null) r'type': type,
    if (updatedAt != null) r'updatedAt': updatedAt!.toUtc().toIso8601String(),
    if (username != null) r'username': username,
  };
}