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