toJson method

  1. @override
dynamic toJson()
override

Returns the json representation of value.

Implementation

@override
dynamic toJson() {
  try {
    return (value as dynamic)?.toJson();
  } on Exception catch (_) {
    throw Exception("$T has not method [toJson]");
  }
}