toJSON method
Implementation
@override
dynamic toJSON(Observable<dynamic>? object, SerializationContext context) {
return object!.value is String ? object.value : object.value.toString();
}
@override
dynamic toJSON(Observable<dynamic>? object, SerializationContext context) {
return object!.value is String ? object.value : object.value.toString();
}