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