Momentum.fromJson constructor
Momentum.fromJson(
- Map<String, dynamic> json
)
Implementation
Momentum.fromJson(Map<String, dynamic> json)
: version = json['version'],
chainIdentifier = json['chainIdentifier'],
hash = Hash.parse(json['hash']),
previousHash = Hash.parse(json['previousHash']),
height = json['height'],
timestamp = json['timestamp'],
data =
(json['data'] == '' ? [] : BytesUtils.base64ToBytes(json['data']))!,
content = (json['content'] as List)
.map((j) => AccountHeader.fromJson(j))
.toList(),
changesHash = Hash.parse(json['changesHash']),
publicKey = json['publicKey'] ?? '',
signature = json['signature'] ?? '',
producer = Address.parse(json['producer']);