ModelsHashIndex.fromJson constructor

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

Implementation

ModelsHashIndex.fromJson(Map<String, dynamic> json) {
  if (json == null) return;
  chains = (json['chains'] as List).map((item) => item as String).toList();
  hash = json['hash'];
  index = json['index'];
}