Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class GruposModel {
- GruposModel({
- this.desc,
- required this.expand,
- this.genre,
- this.id,
- this.nombre,
- });
- String? desc;
- Expand expand;
- String? genre;
- String? id;
- String? nombre;
- factory GruposModel.fromJson(Map<String, dynamic> json) => GruposModel(
- desc: json["desc"],
- expand: Expand.fromJson(json["expand"]),
- genre: json["genre"],
- id: json["id"],
- nombre: json["nombre"],
- );
- Map<String, dynamic> toJson() => {
- "desc": desc,
- "expand": expand.toJson(),
- "genre": genre,
- "id": id,
- "nombre": nombre,
- };
- }
- class Expand {
- Expand({
- required this.genre,
- });
- Genre? genre;
- factory Expand.fromJson(Map<String, dynamic> json) => Expand(
- genre: json["genre"] == null ? null : Genre.fromJson(json["genre"]),
- );
- Map<String, dynamic> toJson() => {
- "genre": genre?.toJson(),
- };
- }
- class Genre {
- Genre({
- this.id,
- this.nombre,
- });
- String? id;
- String? nombre;
- factory Genre.fromJson(Map<String, dynamic> json) => Genre(
- id: json["id"],
- nombre: json["nombre"],
- );
- Map<String, dynamic> toJson() => {
- "id": id,
- "nombre": nombre,
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement