KeyValuePairs.fromJson(Map<String, dynamic> json) { key = json['key']; value = json['value']; index = json['index']; }