Order.fromJson constructor

Order.fromJson(
  1. dynamic json
)

Implementation

Order.fromJson(json) {
  id = json['id'];
  entries = json['entries'] == null
      ? []
      : (json['entries'] as List<dynamic>).map((entry) => OrderEntry.fromJson(entry)).toList();
}