toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final ip = this.ip;
  final ipId = this.ipId;
  final subnetId = this.subnetId;
  return {
    if (ip != null) 'Ip': ip,
    if (ipId != null) 'IpId': ipId,
    if (subnetId != null) 'SubnetId': subnetId,
  };
}