FailureInfo.fromJson constructor

FailureInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory FailureInfo.fromJson(Map<String, dynamic> json) {
  return FailureInfo(
    errorCode: (json['ErrorCode'] as String?)?.toErrorCode(),
    errorMessage: json['ErrorMessage'] as String?,
    statusCode: json['StatusCode'] as int?,
  );
}