toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'emailAddress'] = this.emailAddress;
json[r'accountState'] = this.accountState;
if (this.subscriptionType != null) {
json[r'subscriptionType'] = this.subscriptionType;
} else {
json[r'subscriptionType'] = null;
}
json[r'accountType'] = this.accountType;
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
return json;
}