Map<String, Object?> toJson() { var key = this.key; final json = <String, Object?>{}; json[r'key'] = key; return json; }