fromJson static method
Creates Class Object from Json
Implementation
static Si1TypeDef fromJson(MapEntry<String, dynamic> map) {
switch (map.key) {
case 'Composite':
return Si1TypeDef_Composite.fromJson(map.value);
case 'Variant':
return Si1TypeDef_Variant.fromJson(map.value);
case 'Sequence':
return Si1TypeDef_Sequence.fromJson(map.value);
case 'Array':
return Si1TypeDef_Array.fromJson(map.value);
case 'Tuple':
return Si1TypeDef_Tuple.fromJson(map.value);
case 'Primitive':
return Si1TypeDef_Primitive.fromKey(map.value);
case 'Compact':
return Si1TypeDef_Compact.fromJson(map.value);
case 'BitSequence':
return Si1TypeDef_BitSequence.fromJson(map.value);
default:
throw UnexpectedTypeException('Unexpected type: ${map.key}');
}
}