toJson method

  1. @override
Object toJson(
  1. Object? toJsonT(
    1. T
    )
)
override

Converts to JSon. Json serialization support for json_serializable with @JsonSerializable.

Implementation

@override
Object toJson(Object? Function(T) toJsonT) => map(toJsonT).toList();