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 (hub != null) 'hub': hub!,
      if (labels != null) 'labels': labels!,
      if (linkedInterconnectAttachments != null)
        'linkedInterconnectAttachments': linkedInterconnectAttachments!,
      if (linkedRouterApplianceInstances != null)
        'linkedRouterApplianceInstances': linkedRouterApplianceInstances!
            .map((value) => value.toJson())
            .toList(),
      if (linkedVpnTunnels != null) 'linkedVpnTunnels': linkedVpnTunnels!,
      if (name != null) 'name': name!,
      if (state != null) 'state': state!,
      if (uniqueId != null) 'uniqueId': uniqueId!,
      if (updateTime != null) 'updateTime': updateTime!,
    };