GoogleFirestoreAdminV1IndexConfig.fromJson constructor

GoogleFirestoreAdminV1IndexConfig.fromJson(
  1. Map _json
)

Implementation

GoogleFirestoreAdminV1IndexConfig.fromJson(core.Map _json)
    : this(
        ancestorField: _json.containsKey('ancestorField')
            ? _json['ancestorField'] as core.String
            : null,
        indexes: _json.containsKey('indexes')
            ? (_json['indexes'] as core.List)
                .map((value) => GoogleFirestoreAdminV1Index.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        reverting: _json.containsKey('reverting')
            ? _json['reverting'] as core.bool
            : null,
        usesAncestorConfig: _json.containsKey('usesAncestorConfig')
            ? _json['usesAncestorConfig'] as core.bool
            : null,
      );