TransactionResult.fromJson constructor

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

Implementation

factory TransactionResult.fromJson(Map<String, dynamic> json) =>
    TransactionResult(
      hash: json['hash'] as String,
      success: json['success'] as bool,
      error: json['error'] == null
          ? null
          : TransactionError.fromJson(json['error']),
    );