Files
workavia-mail-front/model/lib/oidc/response/oidc_discovery_response.dart
T
Dat PHAM HOANG e9af17d2e3 [SLO] Add OIDCDiscovery object
(cherry picked from commit 69fa48d9138ee4c555e88e49970619dfa9c561ce)
2023-04-14 17:12:34 +07:00

21 lines
744 B
Dart

import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'oidc_discovery_response.g.dart';
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class OIDCDiscoveryResponse with EquatableMixin {
final String? authorizationEndpoint;
final String? tokenEndpoint;
final String? endSessionEndpoint;
OIDCDiscoveryResponse(this.authorizationEndpoint, this.tokenEndpoint, this.endSessionEndpoint);
factory OIDCDiscoveryResponse.fromJson(Map<String, dynamic> json) => _$OIDCDiscoveryResponseFromJson(json);
Map<String, dynamic> toJson() => _$OIDCDiscoveryResponseToJson(this);
@override
List<Object?> get props => [authorizationEndpoint, tokenEndpoint, endSessionEndpoint];
}