ParsedContractRequest.fromJson constructor

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

Implementation

factory ParsedContractRequest.fromJson(Map<String, dynamic> json) {
  if (json["Error"] != null) {
    return ParsedContractRequest._(json, null);
  }
  return ParsedContractRequest._(
      json, TransactionRaw.fromJson(json["raw_data"]));
}