fromMap method
Implementation
static StateInitSource fromMap(Map<String, dynamic> map) {
if (map['type'] == 'Message') {
return StateInitSource_Message.fromMap(map);
}
if (map['type'] == 'StateInit') {
return StateInitSource_StateInit.fromMap(map);
}
if (map['type'] == 'Tvc') {
return StateInitSource_Tvc.fromMap(map);
}
throw ('StateInitSource unknown from map type');
}