toSmsContactInfoData method
Implementation
SmsContactInfoData toSmsContactInfoData() {
Contact? contact = this;
if (contact != null) {
return SmsContactInfoData(
full_name: contact.fullName ?? "",
first_name: contact.firstName ?? "",
last_name: contact.lastName ?? "",
address: contact.address ?? "",
thumbnail: contact.thumbnail.toSmsPhotoInfoData(),
photo: contact.photo.toSmsPhotoInfoData(),
);
}
return SmsContactInfoData(
full_name: "",
first_name: "",
last_name: "",
address: "",
thumbnail: SmsPhotoInfoData(
bytes: Uint8List.fromList([]),
),
photo: SmsPhotoInfoData(
bytes: Uint8List.fromList([]),
),
);
}