ProfileModel class Null safety

Profile model class

Inheritance
Annotations

Constructors

ProfileModel({required String id, required String lastName, required String firstName, String? avatar, String? email, String? phoneNumber, String? address})
ProfileModel.fromJson(Map<String, dynamic> json)
factory

Properties

address String?
read / write, inherited
avatar String?
read / write, inherited
email String?
read / write, inherited
firstName String
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
read / write, inherited
lastName String
read / write, inherited
phoneNumber String?
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
set({required String lastName, required String firstName, String? avatar, String? email, String? phoneNumber, String? address}) → dynamic
To update profile properties
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited