mirrored_repositories/flutter_unsplash_app/lib/data/api/responses
import 'package:freezed_annotation/freezed_annotation.dart';

import 'profile_image.dart';

part 'user.freezed.dart';
part 'user.g.dart';

@freezed
abstract class User with _$User {
  factory User({
    required String username,
    required ProfileImage profileImage,
  }) = _User;

  factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
}
