toJson method
Converts this model to the map sent to the native SDK.
Implementation
@override
Map<String, Object> toJson() => <String, Object>{
'type': 'qrCode',
'data': data,
if (frame != null) 'frame': frame!.toJson(),
if (width != null) 'width': width!,
if (height != null) 'height': height!,
'horizontalAlignment': horizontalAlignment.name,
'verticalAlignment': verticalAlignment.name,
'codeType': type.nativeValue,
'rotation': rotation.degrees,
};