LineDiscountVatAmountDto.fromJson constructor

LineDiscountVatAmountDto.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LineDiscountVatAmountDto.fromJson(Map<String, dynamic> json) {
  return LineDiscountVatAmountDto(
    percentage: double.parse(json["percentage"].toString()),
    inclVat: double.parse(json["inclVat"].toString()),
    exclVat: double.tryParse(json["exclVat"].toString()),
    vat: double.tryParse(json["vat"].toString()),
    groupId: json["groupId"] as String?,
  );
}