Authenticator.fromJson constructor

Authenticator.fromJson(
  1. Object? json
)

Implementation

factory Authenticator.fromJson(Object? json) {
  final map = asJsonMap(json, 'tcp http header');
  return Authenticator(
    request: map['request'] == null
        ? null
        : AuthenticatorRequest.fromJson(map['request']),
    response: map['response'] == null
        ? null
        : AuthenticatorResponse.fromJson(map['response']),
  );
}