ItemMetadata.fromJson constructor

ItemMetadata.fromJson(
  1. Map json_
)

Implementation

ItemMetadata.fromJson(core.Map json_)
    : this(
        containerName: json_.containsKey('containerName')
            ? json_['containerName'] as core.String
            : null,
        contentLanguage: json_.containsKey('contentLanguage')
            ? json_['contentLanguage'] as core.String
            : null,
        contextAttributes: json_.containsKey('contextAttributes')
            ? (json_['contextAttributes'] as core.List)
                .map((value) => ContextAttribute.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        hash: json_.containsKey('hash') ? json_['hash'] as core.String : null,
        interactions: json_.containsKey('interactions')
            ? (json_['interactions'] as core.List)
                .map((value) => Interaction.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        keywords: json_.containsKey('keywords')
            ? (json_['keywords'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        objectType: json_.containsKey('objectType')
            ? json_['objectType'] as core.String
            : null,
        searchQualityMetadata: json_.containsKey('searchQualityMetadata')
            ? SearchQualityMetadata.fromJson(json_['searchQualityMetadata']
                as core.Map<core.String, core.dynamic>)
            : null,
        sourceRepositoryUrl: json_.containsKey('sourceRepositoryUrl')
            ? json_['sourceRepositoryUrl'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );