Hub.fromJson constructor

Hub.fromJson(
  1. Map json_
)

Implementation

Hub.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,
        exportPsc: json_.containsKey('exportPsc')
            ? json_['exportPsc'] as core.bool
            : 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,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        policyMode: json_.containsKey('policyMode')
            ? json_['policyMode'] as core.String
            : null,
        presetTopology: json_.containsKey('presetTopology')
            ? json_['presetTopology'] as core.String
            : null,
        routeTables: json_.containsKey('routeTables')
            ? (json_['routeTables'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        routingVpcs: json_.containsKey('routingVpcs')
            ? (json_['routingVpcs'] as core.List)
                .map((value) => RoutingVPC.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        spokeSummary: json_.containsKey('spokeSummary')
            ? SpokeSummary.fromJson(
                json_['spokeSummary'] as core.Map<core.String, core.dynamic>)
            : 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,
      );