PermissionDeniedException.fromMap constructor
PermissionDeniedException.fromMap(
- Map<String, dynamic> map
)
Implementation
factory PermissionDeniedException.fromMap(Map<String, dynamic> map){
if(map['errCode'] == null
|| map['errCode'] is! int
|| map['errCode'] != InteractivePlusSystemExceptionType.PERMISSION_DENIED_EXCEPTION.errCode
){
throw InteractivePlusSystemException.SERIALIZATION_EXCEPTION;
}
String Function([String? locale])? errMessageDecoded;
if(map['errMessage'] != null && map['errMessage'] is String){
errMessageDecoded = ([locale]) => map['errMessage'];
}
return PermissionDeniedException(errMessageDecoded);
}