StepModel.fromMap constructor

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

Implementation

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