Spoke.fromJson constructor

Spoke.fromJson(
  1. Map json_
)

Implementation

Spoke.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        group:
            json_.containsKey('group') ? json_['group'] as core.String : null,
        hub: json_.containsKey('hub') ? json_['hub'] as core.String : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        linkedInterconnectAttachments:
            json_.containsKey('linkedInterconnectAttachments')
                ? LinkedInterconnectAttachments.fromJson(
                    json_['linkedInterconnectAttachments']
                        as core.Map<core.String, core.dynamic>)
                : null,
        linkedRouterApplianceInstances:
            json_.containsKey('linkedRouterApplianceInstances')
                ? LinkedRouterApplianceInstances.fromJson(
                    json_['linkedRouterApplianceInstances']
                        as core.Map<core.String, core.dynamic>)
                : null,
        linkedVpcNetwork: json_.containsKey('linkedVpcNetwork')
            ? LinkedVpcNetwork.fromJson(json_['linkedVpcNetwork']
                as core.Map<core.String, core.dynamic>)
            : null,
        linkedVpnTunnels: json_.containsKey('linkedVpnTunnels')
            ? LinkedVpnTunnels.fromJson(json_['linkedVpnTunnels']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        reasons: json_.containsKey('reasons')
            ? (json_['reasons'] as core.List)
                .map((value) => StateReason.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        spokeType: json_.containsKey('spokeType')
            ? json_['spokeType'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        uniqueId: json_.containsKey('uniqueId')
            ? json_['uniqueId'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );