decode static method
Implementation
static FlutterPromotionInfo decode(Object result) {
result as List<Object?>;
return FlutterPromotionInfo(
code: result[0]! as String,
name: result[1]! as String,
type: result[2]! as FlutterPromotionType,
basePrice: result[3]! as int,
discountValue: result[4]! as int,
discountValueLabel: result[5]! as String,
startDate: result[6]! as String,
endDate: result[7] as String?,
);
}