SimulateTranasctionResponse.fromJson constructor
SimulateTranasctionResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SimulateTranasctionResponse.fromJson(Map<String, dynamic> json) {
return SimulateTranasctionResponse(
err: json["err"],
logs: (json["logs"] as List?)?.map((e) => e.toString()).toList(),
accounts: (json["accounts"] as List?)?.map((e) {
if (e == null) return null;
return SolanaAccountInfo.fromJson((e as Map).cast());
}).toList(),
unitsConsumed: BigintUtils.tryParse(json["unitsConsumed"]),
returnData: json["returnData"] == null
? null
: SimulateTranasctionReturnDataResponse.fromJson(
json["returnData"]),
innerInstructions: json["innerInstructions"] == null
? null
: CompiledInnerInstruction.fromJson(json["innerInstructions"]));
}