SignatureStatus.fromJson constructor

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

Implementation

factory SignatureStatus.fromJson(Map<String, dynamic> json) {
  return SignatureStatus(
      slot: json["slot"],
      confirmations: json["confirmations"],
      err: json["err"],
      confirmationStatus: json["confirmationStatus"] == null
          ? null
          : TransactionConfirmationStatus.fromName(
              json["confirmationStatus"]));
}