GoogleFirestoreAdminV1beta2Index.fromJson constructor

GoogleFirestoreAdminV1beta2Index.fromJson(
  1. Map _json
)

Implementation

GoogleFirestoreAdminV1beta2Index.fromJson(core.Map _json)
    : this(
        fields: _json.containsKey('fields')
            ? (_json['fields'] as core.List)
                .map((value) =>
                    GoogleFirestoreAdminV1beta2IndexField.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,
      );