fromJson static method

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

Implementation

static SegmentResult? fromJson(Map<String, dynamic>? json) {
  if (json == null) return null;

  return SegmentResult(
    id: json['id'],
    startTime: json['start_time'],
    endTime: json['end_time'],
    title: json['title'],
    canceledUntil: json['canceled_until'],
    category: json['category'],
  );
}