toJson method
Creates a map suitable for serialization to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> json = HashMap();
json.addAll(data);
json['type'] = type;
json['hash'] = hash;
json['height'] = height;
json['time'] = time;
return json;
}