QuickbooksEffectiveTaxRate.fromMap constructor

QuickbooksEffectiveTaxRate.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory QuickbooksEffectiveTaxRate.fromMap(Map<String, dynamic> map) {
  return QuickbooksEffectiveTaxRate(
    rateValue: double.tryParse(map['RateValue'].toString()),
    endDate: map['EndDate'] != null
        ? DateTime.parse(map['EndDate'].toString())
        : null,
    effectiveDate: map['EffectiveDate'] != null
        ? DateTime.parse(map['EffectiveDate'].toString())
        : null,
  );
}