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,
      );