profile dependencies added
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// ignore_for_file: invalid_annotation_target
|
||||
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
import '../profile_data/profile_data.dart';
|
||||
|
||||
part 'profile_response.freezed.dart';
|
||||
part 'profile_response.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class ProfileResponse with _$ProfileResponse {
|
||||
const factory ProfileResponse({
|
||||
required String? message,
|
||||
required bool? success,
|
||||
required ProfileData? data,
|
||||
}) = _ProfileResponse;
|
||||
|
||||
factory ProfileResponse.fromJson(Map<String, Object?> json) =>
|
||||
_$ProfileResponseFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user