TypeSetting.fromJson constructor

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

Implementation

factory TypeSetting.fromJson(Map<String, Object?> json) => TypeSetting(
      type: json["type"] == null ? null : Type.fromJson(json["type"]),
      name: json["name"] == null ? null : json["name"] as String,
      description:
          json["description"] == null ? null : json["description"] as String,
      enabled: json["enabled"] as bool,
      confirmsUse: json["confirms_use"] as bool,
    );