fromMap static method

Unit fromMap(
  1. Map map
)

Implementation

static Unit fromMap(Map<dynamic, dynamic> map) {
  String name = map["name"];
  return Unit.fromName(name);
}