toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final allocationId = this.allocationId;
  final iPv6Address = this.iPv6Address;
  final privateIPv4Address = this.privateIPv4Address;
  final subnetId = this.subnetId;
  return {
    if (allocationId != null) 'AllocationId': allocationId,
    if (iPv6Address != null) 'IPv6Address': iPv6Address,
    if (privateIPv4Address != null) 'PrivateIPv4Address': privateIPv4Address,
    if (subnetId != null) 'SubnetId': subnetId,
  };
}