Map<String, dynamic> toJson() { final json = <String, dynamic>{}; if (this.key != null) { json[r'key'] = this.key; } else { json[r'key'] = null; } json[r'codes'] = this.codes; return json; }