Branch.fromJson constructor

Branch.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Branch.fromJson(Map<String, dynamic> json) {
  return Branch(
    id: json['id'],
    description: json['description'],
    targetSceneId: json['targetSceneId'],
    valueEffects: json['valueEffects'] != null
        ? Map<String, String>.from(json['valueEffects'])
        : null,
    condition: json['condition'],
  );
}