toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'id': id,
'name': name,
'identifier': identifier,
'interval': interval,
'interval_type': intervalType,
'created_at': createdAt,
'updated_at': updatedAt,
'prices': prices?.map((x) => x.toMap()).toList(),
'features': features?.map((x) => x.toMap()).toList(),
};
}