Qrcode.fromJson(Map<String, dynamic> json) { rect = json['rect'] != null ? Rect.fromJson(json['rect']) : null; status = json['status']; text = json['text']; type = json['type']; }