toJson method Null safety

S toJson(
  1. T object
)

Implementation

S toJson(T object);