deserialize method
Interface for intput serialization.
Implementation
@override
void deserialize(SerializableInput input) {
int numPrompts = 0;
name = deserializeString(input);
instruction = deserializeString(input);
language = deserializeString(input);
numPrompts = input.getUint32();
prompts = List<MapEntry<String, int>>.empty(growable: true);
for (int i = 0; i < numPrompts; i++) {
prompts.add(
MapEntry<String, int>(deserializeString(input), input.getUint8()));
}
}