decode static method
Implementation
static Segment decode(Object result) {
result as List<Object?>;
return Segment(
segmentId: result[0]! as int,
endTimeMs: result[1] as int?,
startTimeMs: result[2]! as int,
category: result[3] != null
? SegmentCategory.values[result[3]! as int]
: null,
subcategory: result[4] != null
? SegmentSubcategory.values[result[4]! as int]
: null,
attributes: (result[5] as List<Object?>?)!.cast<Attribute?>(),
type: result[6] != null
? SegmentType.values[result[6]! as int]
: null,
);
}