toJson method

Map<String, dynamic> toJson()

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,
  };
}