CreateIndexRequest.fromJson constructor
CreateIndexRequest.fromJson(
- Object? j
Implementation
factory CreateIndexRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return CreateIndexRequest(
parent: switch (json['parent']) {
null => '',
Object $1 => decodeString($1),
},
index: switch (json['index']) {
null => null,
Object $1 => Index.fromJson($1),
},
);
}