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