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