toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'object'] = this.object;
json[r'provider'] = this.provider;
json[r'active'] = this.active;
json[r'email_address'] = this.emailAddress;
if (this.firstName != null) {
json[r'first_name'] = this.firstName;
} else {
json[r'first_name'] = null;
}
if (this.lastName != null) {
json[r'last_name'] = this.lastName;
} else {
json[r'last_name'] = null;
}
if (this.providerUserId != null) {
json[r'provider_user_id'] = this.providerUserId;
} else {
json[r'provider_user_id'] = null;
}
json[r'public_metadata'] = this.publicMetadata;
if (this.verification != null) {
json[r'verification'] = this.verification;
} else {
json[r'verification'] = null;
}
if (this.samlConnection != null) {
json[r'saml_connection'] = this.samlConnection;
} else {
json[r'saml_connection'] = null;
}
return json;
}