IndexConfig.fromJson constructor

IndexConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IndexConfig.fromJson(Map<String, dynamic> json) {
  return IndexConfig(
    fieldPath: json['fieldPath'] ?? '',
    type: decodeEnum(json['type'], IndexType.fromJson) ?? IndexType.$default,
    createTime: decodeCustom(json['createTime'], Timestamp.fromJson),
  );
}