TracingCompleteEvent.fromJson constructor
TracingCompleteEvent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TracingCompleteEvent.fromJson(Map<String, dynamic> json) {
return TracingCompleteEvent(
dataLossOccurred: json['dataLossOccurred'] as bool? ?? false,
stream: json.containsKey('stream')
? io.StreamHandle.fromJson(json['stream'] as String)
: null,
traceFormat: json.containsKey('traceFormat')
? StreamFormat.fromJson(json['traceFormat'] as String)
: null,
streamCompression: json.containsKey('streamCompression')
? StreamCompression.fromJson(json['streamCompression'] as String)
: null,
);
}