WooOrderFeeLine.fromJson constructor

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

Implementation

WooOrderFeeLine.fromJson(Map<String, dynamic> json)
    : id = json['id'],
      name = json['name'],
      taxClass = json['tax_class'],
      taxStatus = json['tax_status'],
      total = json['total'],
      totalTax = json['total_tax'],
      taxes =
          (json['taxes'] as List).map((i) => FeeLineTax.fromJson(i)).toList(),
      metaData = (json['meta_data'] as List)
          .map((i) => MetaData.fromJson(i))
          .toList();