fromJson static method
Implementation
static PromptMessage? fromJson(dynamic value) {
if (value == null) {
return null;
}
final type = value[_kMessageType];
final serializedValue =
value[_kSerializedValue] == null
? null
: Map<String, dynamic>.from(value[_kSerializedValue]);
return PromptMessage(type: type, serializedValue: serializedValue);
}