$QrcodeKeyEntityFromJson function

QrcodeKeyEntity $QrcodeKeyEntityFromJson(
  1. Map<String, dynamic> json
)

Implementation

QrcodeKeyEntity $QrcodeKeyEntityFromJson(Map<String, dynamic> json) {
  final QrcodeKeyEntity qrcodeKeyEntity = QrcodeKeyEntity();
  final int? code = jsonConvert.convert<int>(json['code']);
  if (code != null) {
    qrcodeKeyEntity.code = code;
  }
  final String? unikey = jsonConvert.convert<String>(json['unikey']);
  if (unikey != null) {
    qrcodeKeyEntity.unikey = unikey;
  }
  return qrcodeKeyEntity;
}