QueryExtensionResponse.fromJson constructor
QueryExtensionResponse.fromJson(
- Object? j
Implementation
factory QueryExtensionResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return QueryExtensionResponse(
steps: switch (json['steps']) {
null => [],
List<Object?> $1 => [for (final i in $1) Content.fromJson(i)],
_ => throw const FormatException('"steps" is not a list'),
},
failureMessage: switch (json['failureMessage']) {
null => '',
Object $1 => decodeString($1),
},
);
}