GoogleFirestoreAdminV1Index.fromJson constructor

GoogleFirestoreAdminV1Index.fromJson(
  1. Map json_
)

Implementation

GoogleFirestoreAdminV1Index.fromJson(core.Map json_)
    : this(
        apiScope: json_.containsKey('apiScope')
            ? json_['apiScope'] as core.String
            : null,
        fields: json_.containsKey('fields')
            ? (json_['fields'] as core.List)
                .map((value) => GoogleFirestoreAdminV1IndexField.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        queryScope: json_.containsKey('queryScope')
            ? json_['queryScope'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );