toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (description != null) 'description': description!,
      if (exchangeSubnetRoutes != null)
        'exchangeSubnetRoutes': exchangeSubnetRoutes!,
      if (exportCustomRoutes != null)
        'exportCustomRoutes': exportCustomRoutes!,
      if (exportCustomRoutesWithPublicIp != null)
        'exportCustomRoutesWithPublicIp': exportCustomRoutesWithPublicIp!,
      if (importCustomRoutes != null)
        'importCustomRoutes': importCustomRoutes!,
      if (importCustomRoutesWithPublicIp != null)
        'importCustomRoutesWithPublicIp': importCustomRoutesWithPublicIp!,
      if (name != null) 'name': name!,
      if (peerMtu != null) 'peerMtu': peerMtu!,
      if (peerNetwork != null) 'peerNetwork': peerNetwork!,
      if (peerNetworkType != null) 'peerNetworkType': peerNetworkType!,
      if (state != null) 'state': state!,
      if (stateDetails != null) 'stateDetails': stateDetails!,
      if (uid != null) 'uid': uid!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (vmwareEngineNetwork != null)
        'vmwareEngineNetwork': vmwareEngineNetwork!,
    };