ReservationListV1.fromBuffer constructor

ReservationListV1.fromBuffer(
  1. List<int> data
)

Implementation

factory ReservationListV1.fromBuffer(List<int> data) {
  final decode =
      LayoutSerializable.decode(bytes: data, layout: _Utils.layout);
  return ReservationListV1(
      key: MetaDataKey.fromValue(decode["key"]),
      masterEdition: decode["masterEdition"],
      supplySnapshot: decode["supplySnapshot"],
      reservations: (decode["reservations"] as List)
          .map((e) => ReservationV1.fromJson(e))
          .toList());
}