import 'dart:convert';

class SceneModel {
  String? sceneType;
  List<SceneList>? sceneList;

  SceneModel({
    this.sceneType,
    this.sceneList,
  });

  factory SceneModel.fromJson(String str) => SceneModel.fromMap(json.decode(str));

  String toJson() => json.encode(toMap());

  factory SceneModel.fromMap(Map<String, dynamic> json) => SceneModel(
    sceneType: json["sceneType"],
    sceneList: json["sceneList"] == null ? [] : List<SceneList>.from(json["sceneList"]!.map((x) => SceneList.fromMap(x))),
  );

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

class SceneList {
  String? english;
  String? sceneType;
  String? chineseSimplified;
  String? spanish;
  String? hindi;
  String? arabic;
  String? portuguese;
  String? bengali;
  String? russian;
  String? punjabi;
  String? javanese;
  String? korean;
  String? french;
  String? german;
  String? japanese;

  SceneList({
    this.english,
    this.sceneType,
    this.chineseSimplified,
    this.spanish,
    this.hindi,
    this.arabic,
    this.portuguese,
    this.bengali,
    this.russian,
    this.punjabi,
    this.javanese,
    this.korean,
    this.french,
    this.german,
    this.japanese,
  });

  factory SceneList.fromJson(String str) => SceneList.fromMap(json.decode(str));

  String toJson() => json.encode(toMap());

  factory SceneList.fromMap(Map<String, dynamic> json) => SceneList(
    english: json["English"],
    sceneType: json["sceneType"],
    chineseSimplified: json["Chinese (Simplified)"],
    spanish: json["Spanish"],
    hindi: json["Hindi"],
    arabic: json["Arabic"],
    portuguese: json["Portuguese"],
    bengali: json["Bengali"],
    russian: json["Russian"],
    punjabi: json["Punjabi"],
    javanese: json["Javanese"],
    korean: json["Korean"],
    french: json["French"],
    german: json["German"],
    japanese: json["Japanese"],
  );

  Map<String, dynamic> toMap() => {
    "English": english,
    "sceneType": sceneType,
    "Chinese (Simplified)": chineseSimplified,
    "Spanish": spanish,
    "Hindi": hindi,
    "Arabic": arabic,
    "Portuguese": portuguese,
    "Bengali": bengali,
    "Russian": russian,
    "Punjabi": punjabi,
    "Javanese": javanese,
    "Korean": korean,
    "French": french,
    "German": german,
    "Japanese": japanese,
  };
}
