Map<String, dynamic> toJson() { final name = this.name; final oId = this.oId; return { if (name != null) 'Name': name, if (oId != null) 'OId': oId, }; }