SignedExchangeError.fromJson constructor

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

Implementation

factory SignedExchangeError.fromJson(Map<String, dynamic> json) {
  return SignedExchangeError(
    message: json['message'] as String,
    signatureIndex:
        json.containsKey('signatureIndex')
            ? json['signatureIndex'] as int
            : null,
    errorField:
        json.containsKey('errorField')
            ? SignedExchangeErrorField.fromJson(json['errorField'] as String)
            : null,
  );
}