serviceAgreementStatusDTONullableFromJson function
- Object? serviceAgreementStatusDTO, [
- ServiceAgreementStatusDTO? defaultValue
Implementation
enums.ServiceAgreementStatusDTO? serviceAgreementStatusDTONullableFromJson(
Object? serviceAgreementStatusDTO, [
enums.ServiceAgreementStatusDTO? defaultValue,
]) {
if (serviceAgreementStatusDTO == null) {
return null;
}
return enums.ServiceAgreementStatusDTO.values
.firstWhereOrNull((e) => e.value == serviceAgreementStatusDTO) ??
defaultValue;
}