Map<String, dynamic> toJson() => { "isSuccess": isSuccess, "list": list == null ? [] : List<dynamic>.from(list!.map((x) => x.toJson())), };