AccountTax.fromJson constructor

AccountTax.fromJson(
  1. Map json_
)

Implementation

AccountTax.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        rules: json_.containsKey('rules')
            ? (json_['rules'] as core.List)
                .map((value) => AccountTaxTaxRule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );