toMap method
Implementation
Map<String, dynamic> toMap({bool withId = true}) {
return <String, dynamic>{
if (withId) 'Id': id,
'SyncToken': syncToken,
'RateValue': rateValue,
'Name': name,
'AgencyRef': agencyRef?.toMap(),
'SpecialTaxType': specialTaxType,
'EffectiveTaxRate': effectiveTaxRate?.map((e) => e.toMap()).toList(),
'DisplayName': displayName,
'TaxReturnLineRef': taxReturnLineRef?.toMap(),
'Active': active,
'MetaData': metaData,
'OriginalTaxRate': originalTaxRate,
'Description': description,
};
}