ClosingLedger.fromMap constructor

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

Implementation

factory ClosingLedger.fromMap(Map<String, dynamic> map) {
  return ClosingLedger(
    ClosingRange.fromMap(map['closingRange'] as Map<String, dynamic>),
    sell: map['sell'] as num,
    sellCovered: map['sellCovered'] as num,
    sellDeferred: map['sellDeferred'] as num,
    spend: map['spend'] as num,
    spendCovered: map['spendCovered'] as num,
    spendDeferred: map['spendDeferred'] as num,
    wage: map['wage'] as num,
  );
}