Interval.fromJson constructor

Interval.fromJson(
  1. Object? j
)

Implementation

factory Interval.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Interval(
    startTime: switch (json['startTime']) {
      null => null,
      Object $1 => Timestamp.fromJson($1),
    },
    endTime: switch (json['endTime']) {
      null => null,
      Object $1 => Timestamp.fromJson($1),
    },
  );
}