Error.fromJson constructor
Implementation
factory Error.fromJson(Map<String, dynamic> json) {
try {
return Error(
traceId: json['trace_id'] ?? '',
title: json['title'],
subtitle: json['subtitle'],
message: json['message'],
originalMessage: json['original_message'],
messageStatus: json['message_status'],
hash: json['hash'],
buildHash: json['build_hash'],
networkType: json['network_type'],
carrier: json['carrier'],
ip: json['ip'],
locale: json['locale'],
gpsEnabled: json['gps_enabled'],
);
} catch (e) {
return Error(traceId: '');
}
}