You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
Dart
67 lines
1.4 KiB
Dart
class PpmContacts {
|
|
PpmContacts({
|
|
this.id,
|
|
this.visitId,
|
|
this.title,
|
|
this.person,
|
|
this.job,
|
|
this.email,
|
|
this.telephone,
|
|
this.landLine,
|
|
});
|
|
|
|
PpmContacts.fromJson(dynamic json) {
|
|
id = json['id'];
|
|
visitId = json['visitId'];
|
|
title = json['title'];
|
|
person = json['person'];
|
|
job = json['job'];
|
|
email = json['email'];
|
|
telephone = json['telephone'];
|
|
landLine = json['landLine'];
|
|
}
|
|
|
|
num? id;
|
|
num? visitId;
|
|
String? title;
|
|
String? person;
|
|
String? job;
|
|
String? email;
|
|
String? telephone;
|
|
String? landLine;
|
|
|
|
PpmContacts copyWith({
|
|
num? id, // All parameters are now nullable
|
|
num? visitId,
|
|
String? title,
|
|
String? person,
|
|
String? job,
|
|
String? email,
|
|
String? telephone,
|
|
String? landLine,
|
|
}) =>
|
|
PpmContacts(
|
|
id: id ?? this.id,
|
|
visitId: visitId ?? this.visitId,
|
|
title: title ?? this.title,
|
|
person: person ?? this.person,
|
|
job: job ?? this.job,
|
|
email: email ?? this.email,
|
|
telephone: telephone ?? this.telephone,
|
|
landLine: landLine ?? this.landLine,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final map = <String, dynamic>{};
|
|
map['id'] = id;
|
|
map['visitId'] = visitId;
|
|
map['title'] = title;
|
|
map['person'] = person;
|
|
map['job'] = job;
|
|
map['email'] = email;
|
|
map['telephone'] = telephone;
|
|
map['landLine'] = landLine;
|
|
return map;
|
|
}
|
|
}
|