Files
finger_print_app/lib/data/dto/theme_response_dto.dart
Daniah Ayad Al-sultani f616a2c104 chnages has been made
2026-02-22 11:18:10 +03:00

37 lines
896 B
Dart

class ThemeResponseDto {
final int statusCode;
final bool isSuccess;
final String? message;
final ThemeDataDto? data;
ThemeResponseDto({
required this.statusCode,
required this.isSuccess,
required this.message,
required this.data,
});
factory ThemeResponseDto.fromJson(Map<String, dynamic> json) {
return ThemeResponseDto(
statusCode: json['statusCode'] ?? 0,
isSuccess: json['isSuccess'] ?? false,
message: json['message']?.toString(),
data: json['data'] == null ? null : ThemeDataDto.fromJson(json['data']),
);
}
}
class ThemeDataDto {
final String name;
final String logo;
ThemeDataDto({required this.name, required this.logo});
factory ThemeDataDto.fromJson(Map<String, dynamic> json) {
return ThemeDataDto(
name: (json['name'] ?? '').toString(),
logo: (json['logo'] ?? '').toString(),
);
}
}