IdCheckModel.fromMap constructor

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

Implementation

factory IdCheckModel.fromMap(Map<String, dynamic> map) {
  return IdCheckModel(
    id: map['id_no'] ?? '',
    message: map['message'] ?? map['msg'] ?? '',
    isSuccess: map['isSuccess'] ?? false,
  );
}