topicsToJson function

String topicsToJson(
  1. List<Topics> data
)

Implementation

String topicsToJson(List<Topics> data) =>
    json.encode(List<dynamic>.from(data.map((x) => x.toJson())));