toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'object'] = this.object;
json[r'id'] = this.id;
json[r'provider'] = this.provider;
json[r'identification_id'] = this.identificationId;
json[r'provider_user_id'] = this.providerUserId;
json[r'approved_scopes'] = this.approvedScopes;
json[r'email_address'] = this.emailAddress;
if (this.emailAddressVerified != null) {
json[r'email_address_verified'] = this.emailAddressVerified;
} else {
json[r'email_address_verified'] = null;
}
json[r'first_name'] = this.firstName;
json[r'last_name'] = this.lastName;
if (this.avatarUrl != null) {
json[r'avatar_url'] = this.avatarUrl;
} else {
json[r'avatar_url'] = null;
}
if (this.imageUrl != null) {
json[r'image_url'] = this.imageUrl;
} else {
json[r'image_url'] = null;
}
if (this.username != null) {
json[r'username'] = this.username;
} else {
json[r'username'] = null;
}
if (this.phoneNumber != null) {
json[r'phone_number'] = this.phoneNumber;
} else {
json[r'phone_number'] = null;
}
json[r'public_metadata'] = this.publicMetadata;
if (this.label != null) {
json[r'label'] = this.label;
} else {
json[r'label'] = null;
}
json[r'created_at'] = this.createdAt;
json[r'updated_at'] = this.updatedAt;
if (this.verification != null) {
json[r'verification'] = this.verification;
} else {
json[r'verification'] = null;
}
return json;
}