TransactionData.fromJson constructor

TransactionData.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory TransactionData.fromJson(Map<String, dynamic> data) {
  return TransactionData(
    version: data["version"],
    gasData: GasConfig.fromJson(data["gasData"]),
    inputs: List<Map<String, dynamic>>.from(data["inputs"]),
    commands: (data["commands"] as List).cast<Map<dynamic, dynamic>>(),
    sender: data["sender"],
    expiration: TransactionExpiration.fromJson(data["expiration"])
  );
}