Manifest.fromJson constructor

Manifest.fromJson(
  1. Map json_
)

Implementation

Manifest.fromJson(core.Map json_)
    : this(
        config: json_.containsKey('config')
            ? ConfigFile.fromJson(
                json_['config'] as core.Map<core.String, core.dynamic>)
            : null,
        expandedConfig: json_.containsKey('expandedConfig')
            ? json_['expandedConfig'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        imports: json_.containsKey('imports')
            ? (json_['imports'] as core.List)
                .map((value) => ImportFile.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        insertTime: json_.containsKey('insertTime')
            ? json_['insertTime'] as core.String
            : null,
        layout: json_.containsKey('layout')
            ? json_['layout'] as core.String
            : null,
        manifestSizeBytes: json_.containsKey('manifestSizeBytes')
            ? json_['manifestSizeBytes'] as core.String
            : null,
        manifestSizeLimitBytes: json_.containsKey('manifestSizeLimitBytes')
            ? json_['manifestSizeLimitBytes'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
      );