TaxDeductedAtSource.fromJson constructor
TaxDeductedAtSource.fromJson(
- Object? json
Implementation
factory TaxDeductedAtSource.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TaxDeductedAtSource(
id: (map['id'] as String),
periodEnd: DateTime.fromMillisecondsSinceEpoch(
(map['period_end'] as int).toInt()),
periodStart: DateTime.fromMillisecondsSinceEpoch(
(map['period_start'] as int).toInt()),
taxDeductionAccountNumber:
(map['tax_deduction_account_number'] as String),
);
}