subToJson function

String subToJson(
  1. Sub data
)

Implementation

String subToJson(Sub data) => json.encode(data.toJson());