toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'object'] = this.object;
if (this.protocol != null) {
json[r'protocol'] = this.protocol;
} else {
json[r'protocol'] = null;
}
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;
}
if (this.enterpriseConnectionId != null) {
json[r'enterprise_connection_id'] = this.enterpriseConnectionId;
} else {
json[r'enterprise_connection_id'] = null;
}
json[r'public_metadata'] = this.publicMetadata;
if (this.verification != null) {
json[r'verification'] = this.verification;
} else {
json[r'verification'] = null;
}
if (this.enterpriseConnection != null) {
json[r'enterprise_connection'] = this.enterpriseConnection;
} else {
json[r'enterprise_connection'] = null;
}
if (this.lastAuthenticatedAt != null) {
json[r'last_authenticated_at'] = this.lastAuthenticatedAt;
} else {
json[r'last_authenticated_at'] = null;
}
return json;
}