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