deconstructSecondaryPhoneNumber method
Returns a list of secondary phone numbers
Implementation
List<PhoneNumber>? deconstructSecondaryPhoneNumber(CoreState state) {
if (this.userProfile?.secondaryPhoneNumbers != null) {
/// overwrite secondary phones to avoid complex pattern matching
return this.userProfile?.secondaryPhoneNumbers;
} else {
if (state.userState!.userProfile!.secondaryPhoneNumbers != null) {
return state.userState!.userProfile!.secondaryPhoneNumbers;
}
}
return null;
}