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