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