IndexConfig.fromJson constructor
IndexConfig.fromJson(
- Object? j
Implementation
factory IndexConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return IndexConfig(
fieldPath: switch (json['fieldPath']) {
null => '',
Object $1 => decodeString($1),
},
type: switch (json['type']) {
null => IndexType.$default,
Object $1 => IndexType.fromJson($1),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => Timestamp.fromJson($1),
},
);
}