SubmitScanResponse.fromMap constructor

SubmitScanResponse.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory SubmitScanResponse.fromMap(Map<String, dynamic> map) {
  return SubmitScanResponse(
    token: map['token'] ?? '',
    isSuccess: map['isSuccess'] ?? false,
    msg: map['msg'] ?? '',
    scanId: map['scanId'] ?? '',
  );
}