StructuredPipeline.fromJson constructor
StructuredPipeline.fromJson(
- Object? j
Implementation
factory StructuredPipeline.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return StructuredPipeline(
pipeline: switch (json['pipeline']) {
null => null,
Object $1 => Pipeline.fromJson($1),
},
options: switch (json['options']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): Value.fromJson(e.value),
},
_ => throw const FormatException('"options" is not an object'),
},
);
}