StepModel.fromMap constructor
Implementation
factory StepModel.fromMap(Map<String, dynamic> map) {
return StepModel(
sId: map['_id'] ?? '',
scanItem: map['scanItem'] ?? '',
rank: map['rank'],
// documentType: null,
documentType: map['documentType'] != null
? DocumentType.fromJson(map['documentType'])
: null,
);
}