Scene.fromJson constructor
Implementation
factory Scene.fromJson(Map<String, dynamic> json) {
return Scene(
id: json['id'],
image: json['image'],
behaviors: (json['behaviors'] as List)
.map((e) => Behavior.fromJson(e))
.toList(),
next: json['next'],
bgm: json['bgm'],
);
}