fromMap static method

HttpAuthResponse? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible HttpAuthResponse instance from a Map value.

Implementation

static HttpAuthResponse? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = HttpAuthResponse();
  instance.action = HttpAuthResponseAction.fromNativeValue(map['action']);
  instance.password = map['password'];
  instance.permanentPersistence = map['permanentPersistence'];
  instance.username = map['username'];
  return instance;
}