Metadata.fromJson constructor

Metadata.fromJson(
  1. Map json_
)

Implementation

Metadata.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayOptions: json_.containsKey('displayOptions')
            ? ResultDisplayMetadata.fromJson(json_['displayOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        fields: json_.containsKey('fields')
            ? (json_['fields'] as core.List)
                .map((value) => NamedProperty.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        objectType: json_.containsKey('objectType')
            ? json_['objectType'] as core.String
            : null,
        owner: json_.containsKey('owner')
            ? Person.fromJson(
                json_['owner'] as core.Map<core.String, core.dynamic>)
            : null,
        source: json_.containsKey('source')
            ? Source.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
        thumbnailUrl: json_.containsKey('thumbnailUrl')
            ? json_['thumbnailUrl'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );