Map<String, dynamic> toJson() => { "success": success, "data": List<dynamic>.from(data!.map((x) => x.toJson())), };