TikiSyncChainBlock.fromJson constructor
TikiSyncChainBlock.fromJson(
- Map<String, dynamic>? map
)
Implementation
TikiSyncChainBlock.fromJson(Map<String, dynamic>? map) {
if (map != null) {
if (map['contents'] != null)
this.contents = base64.decode(map['contents']);
if (map['previous'] != null)
this.previous = base64.decode(map['previous']);
if (map['signature'] != null)
this.signature = base64.decode(map['signature']);
if (map['created'] != null)
this.created = DateTime.fromMillisecondsSinceEpoch(map['created']);
if (map['synced'] != null)
this.synced = DateTime.fromMillisecondsSinceEpoch(map['synced']);
}
}