Container.fromJson constructor

Container.fromJson(
  1. Map json_
)

Implementation

Container.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        containerId: json_.containsKey('containerId')
            ? json_['containerId'] as core.String
            : null,
        domainName: json_.containsKey('domainName')
            ? (json_['domainName'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        features: json_.containsKey('features')
            ? ContainerFeatures.fromJson(
                json_['features'] as core.Map<core.String, core.dynamic>)
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        notes:
            json_.containsKey('notes') ? json_['notes'] as core.String : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        publicId: json_.containsKey('publicId')
            ? json_['publicId'] as core.String
            : null,
        tagIds: json_.containsKey('tagIds')
            ? (json_['tagIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tagManagerUrl: json_.containsKey('tagManagerUrl')
            ? json_['tagManagerUrl'] as core.String
            : null,
        taggingServerUrls: json_.containsKey('taggingServerUrls')
            ? (json_['taggingServerUrls'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        usageContext: json_.containsKey('usageContext')
            ? (json_['usageContext'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );