VariableItem.fromJson constructor

VariableItem.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory VariableItem.fromJson(Map<String, Object?> json) => VariableItem(
      about: json["about"] == null ? null : json["about"] as String,
      defaultValue: json["default"],
      name: json["name"] as String,
      requiredValue: json["required"] as bool,
      type: VariableItemType.fromJson(json["type"]),
    );