Phone class

A phone number.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

Phone({required String countryCode, required String nationalNumber, String? extensionNumber})
const
Phone.fromJson(Map<String, dynamic> json)
factory

Properties

countryCode String
The country calling code (CC), in its canonical international E.164 numbering plan format. The combined length of the CC and the national number must not be greater than 15 digits. The national number consists of a national destination code (NDC) and subscriber number (SN).
final
extensionNumber String?
The extension number.
final
hashCode int
The hash code for this object.
no setterinherited
nationalNumber String
The national number, in its canonical international E.164 numbering plan format. The combined length of the country calling code (CC) and the national number must not be greater than 15 digits. The national number consists of a national destination code (NDC) and subscriber number (SN).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited