DirectoryListItems.fromJson constructor

DirectoryListItems.fromJson(
  1. Map json_
)

Implementation

DirectoryListItems.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        discoveryLink: json_.containsKey('discoveryLink')
            ? json_['discoveryLink'] as core.String
            : null,
        discoveryRestUrl: json_.containsKey('discoveryRestUrl')
            ? json_['discoveryRestUrl'] as core.String
            : null,
        documentationLink: json_.containsKey('documentationLink')
            ? json_['documentationLink'] as core.String
            : null,
        icons: json_.containsKey('icons')
            ? DirectoryListItemsIcons.fromJson(
                json_['icons'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        preferred: json_.containsKey('preferred')
            ? json_['preferred'] as core.bool
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );