toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'sub'] = this.sub;
  if (this.email != null) {
    json[r'email'] = this.email;
  } else {
    json[r'email'] = null;
  }
  if (this.emailVerified != null) {
    json[r'email_verified'] = this.emailVerified;
  } else {
    json[r'email_verified'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.givenName != null) {
    json[r'given_name'] = this.givenName;
  } else {
    json[r'given_name'] = null;
  }
  if (this.familyName != null) {
    json[r'family_name'] = this.familyName;
  } else {
    json[r'family_name'] = null;
  }
  if (this.preferredUsername != null) {
    json[r'preferred_username'] = this.preferredUsername;
  } else {
    json[r'preferred_username'] = null;
  }
  if (this.picture != null) {
    json[r'picture'] = this.picture;
  } else {
    json[r'picture'] = null;
  }
  if (this.updatedAt != null) {
    json[r'updated_at'] = this.updatedAt;
  } else {
    json[r'updated_at'] = null;
  }
  return json;
}