- Wallet EnakPoint & EnakCoin: beranda, riwayat, saldo kedaluwarsa, kode bayar, tukar EnakCoin, transfer - PIN (buat, ganti, lupa), outlet, riwayat order, game spin - Halaman community, webview, coming soon, dan ikon menu beranda baru - Redesign Reward Saya: kartu tiket, filter chip, detail kode + QR - Hapus customer point loader, menu, dan checkout lama - Base URL ke enaklo-pos-api.altru.id Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
872 B
Dart
33 lines
872 B
Dart
part of '../auth_dtos.dart';
|
|
|
|
@freezed
|
|
abstract class VerifyDto with _$VerifyDto {
|
|
const factory VerifyDto({
|
|
@JsonKey(name: 'status') String? status,
|
|
@JsonKey(name: 'message') String? message,
|
|
@JsonKey(name: 'data') VerifyDataDto? data,
|
|
}) = _VerifyDto;
|
|
|
|
factory VerifyDto.fromJson(Map<String, dynamic> json) =>
|
|
_$VerifyDtoFromJson(json);
|
|
|
|
const VerifyDto._(); // biar bisa bikin method
|
|
|
|
/// mapping ke domain
|
|
Verify toDomain() => Verify(
|
|
status: status ?? '',
|
|
message: message ?? '',
|
|
registrationToken: data?.registrationToken ?? '',
|
|
);
|
|
}
|
|
|
|
@freezed
|
|
abstract class VerifyDataDto with _$VerifyDataDto {
|
|
const factory VerifyDataDto({
|
|
@JsonKey(name: 'registration_token') String? registrationToken,
|
|
}) = _VerifyDataDto;
|
|
|
|
factory VerifyDataDto.fromJson(Map<String, dynamic> json) =>
|
|
_$VerifyDataDtoFromJson(json);
|
|
}
|