UserResponse.from constructor
UserResponse.from({
- required int statusCode,
- required String reasonPhrase,
- required Map<
String, String> headers, - required String id,
- required String username,
- required String name,
- required String biography,
- required String profileCountry,
- required String email,
- required bool isVerifiedEmail,
- required String pictureUrl,
- required String timezone,
- required String timezoneOffset,
- required String motivation,
- required String inviteUrl,
- required String fromLanguage,
- required String learningLanguage,
- required TrackingProperty trackingProperty,
- required XpConfiguration xpConfiguration,
- required GemsConfiguration gemsConfiguration,
- required List<
Course> courses, - required CurrentCourse currentCourse,
- required LastStreak lastStreak,
- required bool xpGoalMetToday,
- required int xpGoal,
- required int weeklyXp,
- required int monthlyXp,
- required int totalXp,
- required int lingots,
- required int gems,
- required String currentCourseId,
- required String coachOutfit,
- required int streak,
- required int longestStreak,
- required String plusStatus,
- required bool hasPlus,
- required List<
PracticeReminderSetting> practiceReminderSettings, - required DateTime createdAt,
Returns the new instance of UserResponse based on arguments.
Implementation
UserResponse.from({
required int statusCode,
required String reasonPhrase,
required Map<String, String> headers,
required this.id,
required this.username,
required this.name,
required this.biography,
required this.profileCountry,
required this.email,
required this.isVerifiedEmail,
required this.pictureUrl,
required this.timezone,
required this.timezoneOffset,
required this.motivation,
required this.inviteUrl,
required this.fromLanguage,
required this.learningLanguage,
required this.trackingProperty,
required this.xpConfiguration,
required this.gemsConfiguration,
required this.courses,
required this.currentCourse,
required this.lastStreak,
required this.xpGoalMetToday,
required this.xpGoal,
required this.weeklyXp,
required this.monthlyXp,
required this.totalXp,
required this.lingots,
required this.gems,
required this.currentCourseId,
required this.coachOutfit,
required this.streak,
required this.longestStreak,
required this.plusStatus,
required this.hasPlus,
required this.practiceReminderSettings,
required this.createdAt,
}) : super.from(
status: Status.from(
code: statusCode,
reasonPhrase: reasonPhrase,
),
headers: headers,
);