InteractionInput.fromObject constructor
Creates an InteractionInput from a Map of value
s.
Throws a FormatException if any entry of the value
map is not a
valid DataSchemaValue.
Implementation
factory InteractionInput.fromObject(Map<String, Object?> value) {
final dataSchemaValue = ObjectValue.tryParse(value);
if (dataSchemaValue == null) {
throw const FormatException("Input contained invalid map entry.");
}
return DataSchemaValueInput(dataSchemaValue);
}