toJSON method
Implementation
@override
dynamic toJSON(Object? object, SerializationContext context) {
dynamic convert(value) => value.toString();
return (object is Iterable)
? object.map(convert).toList()
: convert(object);
}
@override
dynamic toJSON(Object? object, SerializationContext context) {
dynamic convert(value) => value.toString();
return (object is Iterable)
? object.map(convert).toList()
: convert(object);
}