Returns a JSON representation of MaxiCodeParams.
Map<String, dynamic> toJson() { return {'AspectRatio': aspectRatio, 'Mode': mode, 'EncodeMode': encodeMode}; }