Serialize params
Map<String, Object?> get params => <String, Object?>{ 'resize': _type.name, 'w': _width, 'h': _height, };