Database.fromJson constructor

Database.fromJson(
  1. Map json_
)

Implementation

Database.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        grantees: json_.containsKey('grantees')
            ? (json_['grantees'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        query:
            json_.containsKey('query') ? json_['query'] as core.String : null,
        userName: json_.containsKey('userName')
            ? json_['userName'] as core.String
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );