TransactionDataV1.fromJson constructor

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

Implementation

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