toJson method
Implementation
@override
Map<String, dynamic> toJson() {
var json = super.toJson();
if (tenantId != null) {
json['tenantId'] = tenantId!.toJson();
}
if (customerId != null) {
json['customerId'] = customerId!.toJson();
}
json['email'] = email;
json['authority'] = authority.toShortString();
if (firstName != null) {
json['firstName'] = firstName;
}
if (lastName != null) {
json['lastName'] = lastName;
}
if (phone != null) {
json['phone'] = phone;
}
return json;
}