DetailException.fromMap constructor
DetailException.fromMap(
- dynamic map
Implementation
factory DetailException.fromMap(dynamic map) {
if (map is Map) {
return DetailException(
title: map['title'] ?? SeedKitModuleApiLocale.current.exception_something_went_wrong,
detail: map['detail'] ?? SeedKitModuleApiLocale.current.exception_failed_load_data,
);
}
return DetailException(
title: SeedKitModuleApiLocale.current.exception_something_went_wrong,
detail: SeedKitModuleApiLocale.current.exception_failed_load_data,
);
}