toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final allocationId = this.allocationId;
  final associationId = this.associationId;
  final domain = this.domain;
  final instanceId = this.instanceId;
  final networkBorderGroup = this.networkBorderGroup;
  final networkInterfaceId = this.networkInterfaceId;
  final networkInterfaceOwnerId = this.networkInterfaceOwnerId;
  final privateIpAddress = this.privateIpAddress;
  final publicIp = this.publicIp;
  final publicIpv4Pool = this.publicIpv4Pool;
  return {
    if (allocationId != null) 'AllocationId': allocationId,
    if (associationId != null) 'AssociationId': associationId,
    if (domain != null) 'Domain': domain,
    if (instanceId != null) 'InstanceId': instanceId,
    if (networkBorderGroup != null) 'NetworkBorderGroup': networkBorderGroup,
    if (networkInterfaceId != null) 'NetworkInterfaceId': networkInterfaceId,
    if (networkInterfaceOwnerId != null)
      'NetworkInterfaceOwnerId': networkInterfaceOwnerId,
    if (privateIpAddress != null) 'PrivateIpAddress': privateIpAddress,
    if (publicIp != null) 'PublicIp': publicIp,
    if (publicIpv4Pool != null) 'PublicIpv4Pool': publicIpv4Pool,
  };
}