GoogleFirestoreAdminV1beta1Index.fromJson constructor

GoogleFirestoreAdminV1beta1Index.fromJson(
  1. Map _json
)

Implementation

GoogleFirestoreAdminV1beta1Index.fromJson(core.Map _json)
    : this(
        collectionId: _json.containsKey('collectionId')
            ? _json['collectionId'] as core.String
            : null,
        fields: _json.containsKey('fields')
            ? (_json['fields'] as core.List)
                .map((value) =>
                    GoogleFirestoreAdminV1beta1IndexField.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
      );