Map<String, dynamic> toJson() { final _json = <String, dynamic>{}; _json[r'index'] = index; _json[r'name'] = name; return _json; }