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