Unit.fromJson constructor

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

Implementation

factory Unit.fromJson(Map<String, dynamic> json) => Unit(
  type: json["type"],
  unitEnum: List<String>.from(json["enum"].map((x) => x)),
);