ClosingRange.fromMap constructor

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

Implementation

factory ClosingRange.fromMap(Map<String, dynamic> map) {
  return ClosingRange(
    date: DateTime.parse(map['date']),
    start: DateTime.parse(map['startDate']),
    end: DateTime.parse(map['endDate']),
  );
}