Container.fromJson constructor

Container.fromJson(
  1. Map json_
)

Implementation

Container.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        imageId: json_.containsKey('imageId')
            ? json_['imageId'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.List)
                .map((value) => Label.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );