Tx.fromJson constructor

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

Implementation

factory Tx.fromJson(Map<String, dynamic> json) => Tx(
      amount: json["amount"],
      data: json["data"] == null ? null : Data.fromJson(json["data"]),
      fee: json["fee"],
      from: json["from"],
      hash: json["hash"],
      maxFee: json["maxFee"],
      size: json["size"],
      timestamp: json["timestamp"] == null
          ? null
          : DateTime.parse(json["timestamp"]),
      tips: json["tips"],
      to: json["to"],
      type: json["type"],
    );