TimeInterval.fromJson constructor

TimeInterval.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TimeInterval.fromJson(Map<String, dynamic> json) {
  return TimeInterval(
    start: (json['start'] as num).toDouble(),
    duration: (json['duration'] as num).toDouble(),
    confidence: (json['confidence'] as num).toDouble(),
  );
}