toJson method

String toJson(
  1. T value
)

Implementation

String toJson(T value) => jsonEncode(toMap(value));