fromJson static method
Implementation
static JsonGetAttribute fromJson(Map<String, dynamic> json) {
final type = EnumToString.fromString(
VariableTypes.values,
json['type'],
);
return JsonGetAttribute(
cubitID: json['cubit_id'],
stateID: json['state_id'],
variableID: json['variable_id'],
jsonPath: json['json_path'],
type: type!,
overridedLoop: json['overrided_loop'],
formatOptions: json['format_options'] != null
? FormatOptionsHelper.fromJson(json['format_options'])
: const FormatOptionsHelper(options: []),
listFormatOptions: json['list_format_options'] != null
? FormatOptionsHelper.fromJson(json['list_format_options'])
: const FormatOptionsHelper(options: []),
);
}