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