StorageChangeSet.fromJson constructor

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

Implementation

factory StorageChangeSet.fromJson(Map<String, dynamic> json) {
  return StorageChangeSet(
    block: Uint8List.fromList(hex.decode(json['block'].substring(2))),
    changes: (json['changes'] as List)
        .cast<List>()
        .map<KeyValue>((json) => KeyValue.fromJson(json))
        .toList(),
  );
}