PlayerError.fromJson constructor
PlayerError.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PlayerError.fromJson(Map<String, dynamic> json) {
return PlayerError(
errorType: json['errorType'] as String,
code: json['code'] as int,
stack:
(json['stack'] as List)
.map(
(e) => PlayerErrorSourceLocation.fromJson(
e as Map<String, dynamic>,
),
)
.toList(),
cause:
(json['cause'] as List)
.map((e) => PlayerError.fromJson(e as Map<String, dynamic>))
.toList(),
data: json['data'] as Map<String, dynamic>,
);
}