AuthenticatorRequest.fromJson constructor

AuthenticatorRequest.fromJson(
  1. Object? json
)

Implementation

factory AuthenticatorRequest.fromJson(Object? json) {
  final map = asJsonMap(json, 'authenticator request');
  return AuthenticatorRequest(
    version: map['version'] as String?,
    method: map['method'] as String?,
    path: map['path'] == null ? null : XrayStringList.fromJson(map['path']),
    headers: (map['headers'] as Map?)?.map(
      (key, value) => MapEntry('$key', XrayStringList.fromJson(value)),
    ),
  );
}