Interconnect.fromJson constructor

Interconnect.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Interconnect.fromJson(Map<String, dynamic> json) {
  return Interconnect(
    awsDevice: json['awsDevice'] as String?,
    awsDeviceV2: json['awsDeviceV2'] as String?,
    bandwidth: json['bandwidth'] as String?,
    hasLogicalRedundancy:
        (json['hasLogicalRedundancy'] as String?)?.toHasLogicalRedundancy(),
    interconnectId: json['interconnectId'] as String?,
    interconnectName: json['interconnectName'] as String?,
    interconnectState:
        (json['interconnectState'] as String?)?.toInterconnectState(),
    jumboFrameCapable: json['jumboFrameCapable'] as bool?,
    lagId: json['lagId'] as String?,
    loaIssueTime: timeStampFromJson(json['loaIssueTime']),
    location: json['location'] as String?,
    providerName: json['providerName'] as String?,
    region: json['region'] as String?,
    tags: (json['tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}