toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'stationID': stationID,
    'name': name,
    'type': type,
    'logo': logo.toJson(),
    'banner': banner.toJson(),
    'products': products.map((equipment) => equipment.toJson()).toList(),
  };
}