PhoneNumber constructor

const PhoneNumber(
  1. Either<ValueObjectFailure<String>, String> value
)

PhoneNumber is the default constructor of this class. It should NOT be used to create a new instance of PhoneNumber. It's here solely for the purpose to satisfy the compiler since JsonSerializable demands for it. Always use PhoneNumber.withValue(value) constructor which will internally check for the validity of the provided input

Implementation

const PhoneNumber(this.value);