toJson method
Implementation
Map<String, dynamic> toJson() {
final domainName = this.domainName;
final ownerId = this.ownerId;
final region = this.region;
return {
'DomainName': domainName,
if (ownerId != null) 'OwnerId': ownerId,
if (region != null) 'Region': region,
};
}