DetectorModelDefinition.fromJson constructor
Implementation
factory DetectorModelDefinition.fromJson(Map<String, dynamic> json) {
return DetectorModelDefinition(
initialStateName: json['initialStateName'] as String,
states: (json['states'] as List)
.whereNotNull()
.map((e) => State.fromJson(e as Map<String, dynamic>))
.toList(),
);
}