fromMap static method

ErrorCode fromMap(
  1. Map map
)

Implementation

static ErrorCode fromMap(Map<dynamic, dynamic> map) {
  int id = map["id"];
  String name = map["name"];
  return ErrorCode.valueFromName(name);
}