FailedRequestInfo.fromJson constructor

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

Implementation

factory FailedRequestInfo.fromJson(Map<String, dynamic> json) {
  return FailedRequestInfo(
    url: json['url'] as String,
    failureMessage: json['failureMessage'] as String,
    requestId: json.containsKey('requestId')
        ? network.RequestId.fromJson(json['requestId'] as String)
        : null,
  );
}