Worker class Null safety

채팅에서 사용자를 Worker, Doctor로 나누기위해 구상한 모델인데 미완성입니다.

Inheritance
Annotations

Constructors

Worker({required String id, required String username, required String name, required String type, String? imagePath})
Worker.fromJson(Map<String, dynamic> json)
factory

Properties

awsAccessKey String?
@JsonKey(ignore: true), read / write, inherited
awsSecretKey String?
@JsonKey(ignore: true), read / write, inherited
awsSessionToken String?
@JsonKey(ignore: true), read / write, inherited
birth DateTime?
@JsonKey(ignore: true), read / write, inherited
createdAt String?
@JsonKey(ignore: true), read / write, inherited
email String?
@JsonKey(ignore: true), read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
@JsonKey(name: 'id'), read / write, inherited
imagePath String?
@JsonKey(name: 'imagePath'), read / write, inherited
isAgreeMarketing String?
@JsonKey(ignore: true), read / write, inherited
isAgreePrivacy String?
@JsonKey(ignore: true), read / write, inherited
isAgreeTerms String?
@JsonKey(ignore: true), read / write, inherited
isSignedIn bool
read-only, inherited
name String
@JsonKey(name: 'name'), read / write, inherited
notificationToken String?
@JsonKey(ignore: true), read / write, inherited
phoneNumber String?
@JsonKey(ignore: true), read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
@JsonKey(name: 'type'), read / write, inherited
username String
@JsonKey(name: "username"), read / write, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object. [...]
inherited

Operators

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