fromJson static method

ConditionParameterDeviceInfo fromJson(
  1. Map<String, dynamic> json
)
override

Implementation

static ConditionParameterDeviceInfo fromJson(Map<String, dynamic> json) =>
    ConditionParameterDeviceInfo(
      controllerID: json['controller_id'],
      field: EnumToString.fromString(
        ConditionParameterDeviceInfoFields.values,
        json['field'],
      )!,
      formatOptionsHelper: json['format_options'] != null
          ? FormatOptionsHelper.fromJson(
              json['format_options'],
            )
          : const FormatOptionsHelper(options: []),
    );