SlideCaptchaModel.fromJson constructor
SlideCaptchaModel.fromJson(
- dynamic json
Implementation
SlideCaptchaModel.fromJson(dynamic json) {
_captchaId = json['captchaId'];
_captchaKey = json['captchaKey'];
_displayX = json['displayX'];
_displayY = json['displayY'];
_masterHeight = json['masterHeight'];
if (json['masterImageBase64'] != null) {
_masterImageBase64 =
base64Decode("${json['masterImageBase64']}".split(",")[1])
as Uint8List?;
}
_masterWidth = json['masterWidth'];
_thumbHeight = json['thumbHeight'];
if (json['thumbImageBase64'] != null) {
_thumbImageBase64 =
base64Decode("${json['thumbImageBase64']}".split(",")[1])
as Uint8List?;
}
_thumbSize = json['thumbSize'];
_thumbWidth = json['thumbWidth'];
}