RecordSegment.fromJson constructor

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

JSON 反序列化支持

Implementation

factory RecordSegment.fromJson(Map<String, dynamic> json) {
  return RecordSegment(
    startTimeMs: json['startTimeMs'] as int,
    endTimeMs: json['endTimeMs'] as int,
    type: SegmentType.values[json['type'] as int],
    extraData: json['extraData'] as Map<String, dynamic>?,
  );
}