SavedQuery.fromJson constructor

SavedQuery.fromJson(
  1. Map json_
)

Implementation

SavedQuery.fromJson(core.Map json_)
    : this(
        content: json_.containsKey('content')
            ? QueryContent.fromJson(
                json_['content'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        creator: json_.containsKey('creator')
            ? json_['creator'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        lastUpdateTime: json_.containsKey('lastUpdateTime')
            ? json_['lastUpdateTime'] as core.String
            : null,
        lastUpdater: json_.containsKey('lastUpdater')
            ? json_['lastUpdater'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );