DiscountLineVatAmountDto.fromJson constructor
DiscountLineVatAmountDto.fromJson(- Map<String, dynamic> json
)
Implementation
factory DiscountLineVatAmountDto.fromJson(Map<String, dynamic> json) {
return DiscountLineVatAmountDto(
percentage: double.parse(json["percentage"].toString()),
inclVat: double.parse(json["inclVat"].toString()),
exclVat: double.tryParse(json["exclVat"].toString()),
vat: double.tryParse(json["vat"].toString()),
relatedLines: (json["relatedLines"] as List<dynamic>?)
?.map((e) => e as int)
.toList(),
groupId: json["groupId"] as String?,
);
}