factory Order.fromMap(Map<String, dynamic> map) { return Order(orderId: map['orderId'] ?? '', orderType: OrderType.purchase); }