// To parse this JSON data, do // // final welcome = welcomeFromJson(jsonString); import 'dart:convert'; TopicsCloudResp welcomeFromJson(String str) => TopicsCloudResp.fromJson(json.decode(str)); String welcomeToJson(TopicsCloudResp data) => json.encode(data.toJson()); class TopicsCloudResp { List>>? data; TopicsCloudResp({ this.data, }); factory TopicsCloudResp.fromJson(Map json) => TopicsCloudResp( data: json["data"] == null ? [] : List>>.from(json["data"]!.map( (x) => Map.from(x).map((k, v) => MapEntry>( k, List.from( v.map((x) => TopicsCloudData.fromJson(x))))))), ); Map toJson() => { "data": data == null ? [] : List.from(data!.map((x) => Map.from(x).map((k, v) => MapEntry( k, List.from(v.map((x) => x.toJson())))))), }; } class Topicsresp { List data; Topicsresp({ required this.data, }); factory Topicsresp.fromJson(Map json) => Topicsresp( data: List.from( json["data"].map((x) => TopicsCloudData.fromJson(x))), ); Map toJson() => { "data": List.from(data.map((x) => x.toJson())), }; } class TopicsCloudData { String? total; String? topic; String? id; TopicsCloudData({ this.total, this.topic, this.id, }); factory TopicsCloudData.fromJson(Map json) => TopicsCloudData( total: json["total"], topic: json["topic"], id: json["id"], ); Map toJson() => { "total": total, "topic": topic, "id": id, }; }