/*
 * @Author: XianKaiQun
 * @Date: 2020-09-18 11:32:28
 * @LastEditors: XianKaiQun
 * @LastEditTime: 2020-09-18 11:32:37
 * @Description: 
 */
class CheatSettingModel {
  String? id;
  String? qrcodeType;
  String? communityId;
  bool? uploadCoord;
  bool? randomTakePhoto;
  num? takePhotoFrame;
  num? takePhotoCheckProb;
  List<String?>? qrcodeManagementIds;

  CheatSettingModel({
    this.id,
    this.qrcodeType,
    this.communityId,
    this.uploadCoord,
    this.randomTakePhoto,
    this.takePhotoFrame,
    this.takePhotoCheckProb,
    this.qrcodeManagementIds,
  });

  CheatSettingModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    id = map['id'];
    qrcodeType = map['qrcodeType'];
    communityId = map['communityId'];
    uploadCoord = map['uploadCoord'];
    randomTakePhoto = map['randomTakePhoto'];
    takePhotoFrame = map['takePhotoFrame'];
    takePhotoCheckProb = map['takePhotoCheckProb'];
    qrcodeManagementIds = map['qrcodeManagementIds'].cast<String>();
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['id'] = this.id;
    json['qrcodeType'] = this.qrcodeType;
    json['communityId'] = this.communityId;
    json['uploadCoord'] = this.uploadCoord;
    json['randomTakePhoto'] = this.randomTakePhoto;
    json['takePhotoFrame'] = this.takePhotoFrame;
    json['takePhotoCheckProb'] = this.takePhotoCheckProb;
    json['qrcodeManagementIds'] = this.qrcodeManagementIds;

    return json;
  }
}
