PulseUser class
- Implementers
- Annotations
-
- @Freezed(unionKey: 'role')
Constructors
-
PulseUser.agency({@HiveField(0) @JsonKey(includeIfNull: false, name: '_id') String? id, @HiveField(1) String? firstName, @HiveField(2) String? lastName, @HiveField(3) String? userName, @HiveField(4) PulsePhone? phone, @HiveField(5) String? businessPhone, @HiveField(6) String? email, @HiveField(7) @JsonKey(includeIfNull: false) String? bio, @HiveField(8) @JsonKey(includeIfNull: false) String? profilePic, @HiveField(9) @JsonKey(includeFromJson: false, includeToJson: true) @Default([]) List<PulseTag> tags, @HiveField(10) @JsonKey(includeIfNull: false) String? token, @HiveField(11) @Default(PulseUserRole.agency) PulseUserRole role, @HiveField(12) @JsonKey(includeIfNull: false) String? instagramUrl, @HiveField(13) @JsonKey(includeIfNull: false) String? snapchatUrl, @HiveField(14) @JsonKey(includeIfNull: false) String? linkedInUrl, @HiveField(15) @JsonKey(includeIfNull: false) String? facebookUrl, @HiveField(16) bool? isVerified})
-
const
factory
-
PulseUser.agent({@HiveField(0) @JsonKey(includeIfNull: false, name: '_id') String? id, @HiveField(1) String? firstName, @HiveField(2) String? lastName, @HiveField(3) PulsePhone? phone, @HiveField(4) String? email, @HiveField(5) Map<String, String?>? agency, @HiveField(6) List<PulseUserArtist>? artists, @HiveField(7) @JsonKey(includeIfNull: false) String? token, @HiveField(8) @Default(PulseUserRole.agent) PulseUserRole role, @HiveField(9) bool? isVerified})
-
const
factory
-
PulseUser.artist({@HiveField(0) @JsonKey(includeIfNull: false, name: '_id') String? id, @HiveField(1) String? firstName, @HiveField(2) String? lastName, @HiveField(3) String? userName, @HiveField(4) PulsePhone? phone, @HiveField(6) @JsonKey(includeIfNull: false) String? bio, @HiveField(7) @JsonKey(includeIfNull: false) String? profilePic, @HiveField(8) @JsonKey(includeIfNull: false) String? token, @HiveField(9) @JsonKey(includeIfNull: false) String? instagramUrl, @HiveField(10) @JsonKey(includeIfNull: false) String? snapchatUrl, @HiveField(11) @JsonKey(includeIfNull: false) String? linkedInUrl, @HiveField(12) @JsonKey(includeIfNull: false) String? facebookUrl, @HiveField(13) @Default(PulseUserRole.artist) PulseUserRole role, @HiveField(14) @JsonKey(name: 'genre') List<String>? genres, @HiveField(15) @JsonKey(includeIfNull: false) String? agentId, @HiveField(16) @JsonKey() bool? hasAgent})
-
const
factory
-
PulseUser.collective({@HiveField(0) @JsonKey(includeIfNull: false, name: '_id') String? id, @HiveField(1) String? firstName, @HiveField(2) String? lastName, @HiveField(3) String? userName, @HiveField(4) PulsePhone? phone, @HiveField(5) String? businessPhone, @HiveField(6) String? email, @HiveField(7) @JsonKey(includeIfNull: false) String? bio, @HiveField(8) @JsonKey(includeIfNull: false) String? profilePic, @HiveField(9) @JsonKey(includeFromJson: false, includeToJson: true) @Default([]) List<PulseTag> tags, @HiveField(10) @JsonKey(includeIfNull: false) String? token, @HiveField(11) @Default(PulseUserRole.collective) PulseUserRole role, @HiveField(12) @JsonKey(includeIfNull: false) String? instagramUrl, @HiveField(13) @JsonKey(includeIfNull: false) String? snapchatUrl, @HiveField(14) @JsonKey(includeIfNull: false) String? linkedInUrl, @HiveField(15) @JsonKey(includeIfNull: false) String? facebookUrl, @HiveField(16) bool? isVerified})
-
const
factory
-
PulseUser.fromJson(Map<String, dynamic> json)
-
factory
-
PulseUser.venue({@HiveField(0) @JsonKey(includeIfNull: false, name: '_id') String? id, @HiveField(1) @JsonKey(name: 'name') String? userName, @HiveField(2) String? city, @HiveField(3) String? businessPhone, @HiveField(4) PulsePhone? phone, @HiveField(5) PulseAddress? address, @HiveField(6) @JsonKey(includeFromJson: false, includeToJson: true) @Default([]) List<PulseTag> tags, @HiveField(7) @Default(PulseUserRole.venue) PulseUserRole role, @HiveField(9) List<VenueAmenity>? amenities, @HiveField(10) List<VenueTime>? time, @HiveField(11) String? bio, @HiveField(12) @JsonKey(name: 'picture') List<String>? pictures, @HiveField(13) String? profilePic, @HiveField(14) @JsonKey(includeIfNull: false) String? token})
-
const
factory
Methods
-
map<TResult extends Object?>({required TResult venue(PulseUserVenue value), required TResult artist(PulseUserArtist value), required TResult agency(PulseUserAgency value), required TResult agent(PulseUserAgent value), required TResult collective(PulseUserCollective value)})
→ TResult
-
inherited
-
mapOrNull<TResult extends Object?>({TResult? venue(PulseUserVenue value)?, TResult? artist(PulseUserArtist value)?, TResult? agency(PulseUserAgency value)?, TResult? agent(PulseUserAgent value)?, TResult? collective(PulseUserCollective value)?})
→ TResult?
-
inherited
-
maybeMap<TResult extends Object?>({TResult venue(PulseUserVenue value)?, TResult artist(PulseUserArtist value)?, TResult agency(PulseUserAgency value)?, TResult agent(PulseUserAgent value)?, TResult collective(PulseUserCollective value)?, required TResult orElse()})
→ TResult
-
inherited
-
maybeWhen<TResult extends Object?>({TResult venue(String? id, String? userName, String? city, String? businessPhone, PulsePhone? phone, PulseAddress? address, List<PulseTag> tags, PulseUserRole role, List<VenueAmenity>? amenities, List<VenueTime>? time, String? bio, List<String>? pictures, String? profilePic, String? token)?, TResult artist(String? id, String? firstName, String? lastName, String? userName, PulsePhone? phone, String? bio, String? profilePic, String? token, String? instagramUrl, String? snapchatUrl, String? linkedInUrl, String? facebookUrl, PulseUserRole role, List<String>? genres, String? agentId, bool? hasAgent)?, TResult agency(String? id, String? firstName, String? lastName, String? userName, PulsePhone? phone, String? businessPhone, String? email, String? bio, String? profilePic, List<PulseTag> tags, String? token, PulseUserRole role, String? instagramUrl, String? snapchatUrl, String? linkedInUrl, String? facebookUrl, bool? isVerified)?, TResult agent(String? id, String? firstName, String? lastName, PulsePhone? phone, String? email, Map<String, String?>? agency, List<PulseUserArtist>? artists, String? token, PulseUserRole role, bool? isVerified)?, TResult collective(String? id, String? firstName, String? lastName, String? userName, PulsePhone? phone, String? businessPhone, String? email, String? bio, String? profilePic, List<PulseTag> tags, String? token, PulseUserRole role, String? instagramUrl, String? snapchatUrl, String? linkedInUrl, String? facebookUrl, bool? isVerified)?, required TResult orElse()})
→ TResult
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
when<TResult extends Object?>({required TResult venue(String? id, String? userName, String? city, String? businessPhone, PulsePhone? phone, PulseAddress? address, List<PulseTag> tags, PulseUserRole role, List<VenueAmenity>? amenities, List<VenueTime>? time, String? bio, List<String>? pictures, String? profilePic, String? token), required TResult artist(String? id, String? firstName, String? lastName, String? userName, PulsePhone? phone, String? bio, String? profilePic, String? token, String? instagramUrl, String? snapchatUrl, String? linkedInUrl, String? facebookUrl, PulseUserRole role, List<String>? genres, String? agentId, bool? hasAgent), required TResult agency(String? id, String? firstName, String? lastName, String? userName, PulsePhone? phone, String? businessPhone, String? email, String? bio, String? profilePic, List<PulseTag> tags, String? token, PulseUserRole role, String? instagramUrl, String? snapchatUrl, String? linkedInUrl, String? facebookUrl, bool? isVerified), required TResult agent(String? id, String? firstName, String? lastName, PulsePhone? phone, String? email, Map<String, String?>? agency, List<PulseUserArtist>? artists, String? token, PulseUserRole role, bool? isVerified), required TResult collective(String? id, String? firstName, String? lastName, String? userName, PulsePhone? phone, String? businessPhone, String? email, String? bio, String? profilePic, List<PulseTag> tags, String? token, PulseUserRole role, String? instagramUrl, String? snapchatUrl, String? linkedInUrl, String? facebookUrl, bool? isVerified)})
→ TResult
-
inherited
-
whenOrNull<TResult extends Object?>({TResult? venue(String? id, String? userName, String? city, String? businessPhone, PulsePhone? phone, PulseAddress? address, List<PulseTag> tags, PulseUserRole role, List<VenueAmenity>? amenities, List<VenueTime>? time, String? bio, List<String>? pictures, String? profilePic, String? token)?, TResult? artist(String? id, String? firstName, String? lastName, String? userName, PulsePhone? phone, String? bio, String? profilePic, String? token, String? instagramUrl, String? snapchatUrl, String? linkedInUrl, String? facebookUrl, PulseUserRole role, List<String>? genres, String? agentId, bool? hasAgent)?, TResult? agency(String? id, String? firstName, String? lastName, String? userName, PulsePhone? phone, String? businessPhone, String? email, String? bio, String? profilePic, List<PulseTag> tags, String? token, PulseUserRole role, String? instagramUrl, String? snapchatUrl, String? linkedInUrl, String? facebookUrl, bool? isVerified)?, TResult? agent(String? id, String? firstName, String? lastName, PulsePhone? phone, String? email, Map<String, String?>? agency, List<PulseUserArtist>? artists, String? token, PulseUserRole role, bool? isVerified)?, TResult? collective(String? id, String? firstName, String? lastName, String? userName, PulsePhone? phone, String? businessPhone, String? email, String? bio, String? profilePic, List<PulseTag> tags, String? token, PulseUserRole role, String? instagramUrl, String? snapchatUrl, String? linkedInUrl, String? facebookUrl, bool? isVerified)?})
→ TResult?
-
inherited