fromJson method

  1. @override
List<DateTime>? fromJson(
  1. List? timestamps
)

Implementation

@override
List<DateTime>? fromJson(List<dynamic>? timestamps) {
  // return timestamps?.map((e as Timestamp) => e.toDate()).toList<Timestamp>();
  return timestamps?.map((e) => (e as Timestamp).toDate()).toList();
}