Map<String, dynamic> toJson() { return <String, dynamic>{ if (plan != null) r'plan': plan, if (self != null) r'self': self, }; }