Fragment.fromJson constructor

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

Implementation

factory Fragment.fromJson(Map<String, dynamic> json) {
  return Fragment(
    fragmentLengthInMilliseconds:
        json['FragmentLengthInMilliseconds'] as int?,
    fragmentNumber: json['FragmentNumber'] as String?,
    fragmentSizeInBytes: json['FragmentSizeInBytes'] as int?,
    producerTimestamp: timeStampFromJson(json['ProducerTimestamp']),
    serverTimestamp: timeStampFromJson(json['ServerTimestamp']),
  );
}