fromJson static method
Implementation
static EmitNewStatePassingParameter fromJson(Map<String, dynamic> json) {
final type = EnumToString.fromString(
EmitNewStatePassingParameterType.values, json['type'])!;
switch (type) {
case EmitNewStatePassingParameterType.fromCubit:
return PassingParameterFromCubit.fromJson(json);
case EmitNewStatePassingParameterType.fromController:
return PassingParameterFromController.fromJson(json);
case EmitNewStatePassingParameterType.fromActionConStringVar:
return PassingParameterFromActionConStringVar.fromJson(json);
case EmitNewStatePassingParameterType.fromNodeValue:
return PassingParameterFromActionNodeValue.fromJson(json);
case EmitNewStatePassingParameterType.nil:
throw Exception('Invalid EmitNewStatePassingParameterType');
}
}