Index.fromJson constructor

Index.fromJson(
  1. String name,
  2. Map<String, dynamic> json,
  3. int numDocs
)

Implementation

Index.fromJson(String name, Map<String, dynamic> json, int numDocs)
    : name = name,
      numDocs = numDocs,
      status = json["status"],
      numShards = json["number_of_shards"],
      numReplicas = json["number_of_replicas"],
      activePrimaryShards = json["active_primary_shards"],
      activeShards = json["active_shards"];