toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'object'] = this.object;
json[r'id'] = this.id;
json[r'email_address'] = this.emailAddress;
json[r'public_metadata'] = this.publicMetadata;
if (this.revoked != null) {
json[r'revoked'] = this.revoked;
} else {
json[r'revoked'] = null;
}
json[r'status'] = this.status;
if (this.url != null) {
json[r'url'] = this.url;
} else {
json[r'url'] = null;
}
if (this.expiresAt != null) {
json[r'expires_at'] = this.expiresAt;
} else {
json[r'expires_at'] = null;
}
json[r'created_at'] = this.createdAt;
json[r'updated_at'] = this.updatedAt;
return json;
}