toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'type': type,
    'displayName': displayName,
    'description': description,
    'price': price,
    'displayPrice': displayPrice,
    'subscription': subscription?.toMap(),
  };
}