Transaction.fromJson constructor
Transaction.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Transaction.fromJson(Map<String, dynamic> json) => Transaction(
address: json['address'],
balance:
json['balance'] == null ? null : Balance.fromJson(json['balance']),
chainLength: json['chainLength'],
crossValidationStamps: json['crossValidationStamps'] == null
? null
: List<CrossValidationStamp>.from(json['crossValidationStamps']
.map((dynamic x) => CrossValidationStamp.fromJson(x))),
data: json['data'] == null ? null : Data.fromJson(json['data']),
inputs: json['inputs'] == null
? null
: List<TransactionInput>.from(json['inputs']
.map((dynamic x) => TransactionInput.fromJson(x))),
originSignature: json['originSignature'],
previousPublicKey: json['previousPublicKey'],
previousSignature: json['previousSignature'],
type: json['type'],
validationStamp: json['validationStamp'] == null
? null
: ValidationStamp.fromJson(json['validationStamp']),
version: json['version'],
);