of static method
Implementation
static Contact? of(final dyn, ContactMode mode) {
if (dyn == null) {
return null;
} else if (dyn is Contact) {
return dyn;
} else {
return Contact.fromMap(dyn, mode);
}
}
static Contact? of(final dyn, ContactMode mode) {
if (dyn == null) {
return null;
} else if (dyn is Contact) {
return dyn;
} else {
return Contact.fromMap(dyn, mode);
}
}