12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import 'dart:typed_data';
- class IdCardInfoModel {
- String certType;
- String peopleName;
- String idCard;
- String sex;
- Uint8List? wltData;
- String base64Image;
- String people;
- String birthDay;
- String address;
- IdCardInfoModel({
- this.certType = "",
- this.peopleName = "",
- this.idCard = "",
- this.sex = "",
- this.wltData,
- this.base64Image = "",
- this.people = "",
- this.birthDay = "",
- this.address = "",
- });
- factory IdCardInfoModel.fromJson(Map json) => IdCardInfoModel(
- certType: json["certType"] == null ? "" : json["certType"],
- peopleName: json["peopleName"] == null ? "" : json["peopleName"],
- idCard: json["idCard"] == null ? "" : json["idCard"],
- sex: json["sex"] == null ? "" : json["sex"],
- wltData: json["wltData"] == null ? null : json["wltData"],
- base64Image: json["base64Image"] == null ? "" : json["base64Image"],
- people: json["people"] == null ? "" : json["people"],
- birthDay: json["birthDay"] == null ? "" : json["birthDay"],
- address: json["address"] == null ? "" : json["address"],
- );
- Map<String, dynamic> toJson() => {
- "cityName": certType,
- "contactName": peopleName,
- "mobile": idCard,
- "sex": sex,
- "tag": wltData == null ? null : wltData,
- "base64Image": base64Image,
- "people": people,
- "birthDay": birthDay,
- "address": address,
- };
- }
|