forked from eatvio/eatvio_app
37 lines
735 B
Dart
37 lines
735 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'oauth_verification_confirm_response.freezed.dart';
|
|
part 'oauth_verification_confirm_response.g.dart';
|
|
|
|
@freezed
|
|
abstract class OAuthVerificationConfirmResponse with _$OAuthVerificationConfirmResponse {
|
|
const factory OAuthVerificationConfirmResponse({
|
|
required bool success,
|
|
required String message,
|
|
required String token,
|
|
required Map<String, dynamic> user,
|
|
@JsonKey(name: 'is_new_user') required bool isNewUser,
|
|
}) = _OAuthVerificationConfirmResponse;
|
|
|
|
factory OAuthVerificationConfirmResponse.fromJson(Map<String, dynamic> json) => _$OAuthVerificationConfirmResponseFromJson(json);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|