InvoiceLineItem constructor
- @JsonSerializable(explicitToJson: true)
- @Default('') String id,
- @Default('') @JsonKey(name: 'product_key') String productKey,
- @Default('') String notes,
- @Default(0) double cost,
- @Default(0) double quantity,
- @Default('') @JsonKey(name: 'tax_name1') String taxName1,
- @Default(0) @JsonKey(name: 'tax_rate1') double taxRate1,
- @Default('') @JsonKey(name: 'tax_name2') String taxName2,
- @Default(0) @JsonKey(name: 'tax_rate2') double taxRate2,
- @Default('') @JsonKey(name: 'tax_name3') String taxName3,
- @Default(0) @JsonKey(name: 'tax_rate3') double taxRate3,
- @Default('') @JsonKey(name: 'type_id') String typeId,
- @Default('') @JsonKey(name: 'custom_value1') String customValue1,
- @Default('') @JsonKey(name: 'custom_value2') String customValue2,
- @Default('') @JsonKey(name: 'custom_value3') String customValue3,
- @Default('') @JsonKey(name: 'custom_value4') String customValue4,
- @Default(0) double discount,
InvoiceLineItem factory constructor
Implementation
@JsonSerializable(explicitToJson: true)
const factory InvoiceLineItem({
@Default('') String id,
@Default('') @JsonKey(name: 'product_key') String productKey,
@Default('') String notes,
@Default(0) double cost,
@Default(0) double quantity,
@Default('') @JsonKey(name: 'tax_name1') String taxName1,
@Default(0) @JsonKey(name: 'tax_rate1') double taxRate1,
@Default('') @JsonKey(name: 'tax_name2') String taxName2,
@Default(0) @JsonKey(name: 'tax_rate2') double taxRate2,
@Default('') @JsonKey(name: 'tax_name3') String taxName3,
@Default(0) @JsonKey(name: 'tax_rate3') double taxRate3,
@Default('') @JsonKey(name: 'type_id') String typeId,
@Default('') @JsonKey(name: 'custom_value1') String customValue1,
@Default('') @JsonKey(name: 'custom_value2') String customValue2,
@Default('') @JsonKey(name: 'custom_value3') String customValue3,
@Default('') @JsonKey(name: 'custom_value4') String customValue4,
@Default(0) double discount,
}) = _InvoiceLineItem;