SessionItemsItem.fromJson constructor

SessionItemsItem.fromJson(
  1. Object? json
)

Implementation

factory SessionItemsItem.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionItemsItem(
    id: (map['id'] as String),
    price: map['price'] == null ? null : (map['price'] as String),
    quantity:
        map['quantity'] == null ? null : (map['quantity'] as num).toInt(),
  );
}