toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'displayName': displayName,
    'promotionalPrice': promotionalPrice.toMap(),
    'expiresAt': expiresAt?.toIso8601String(),
    'type': type.rawValue,
  };
}