decode static method
Implementation
static FlutterPromotion decode(Object result) {
result as List<Object?>;
return FlutterPromotion(
code: result[0]! as String,
name: result[1]! as String,
discountType: result[2]! as FlutterPromotionDiscountTypeWrapper,
status: result[3]! as FlutterPromotionStatus,
startDate: result[4]! as String,
endDate: result[5] as String?,
productCodes: (result[6] as List<Object?>?)?.cast<String>(),
);
}