Skip to content

PhoneNumberInput

The phone number of a participant.

Inheritance
Annotations

Constructors

PhoneNumberInput.fromJson

PhoneNumberInput.fromJson(
  1. Map<String, dynamic> json
)

PhoneNumberInput

PhoneNumberInput({
  1. required String countryCode,
  2. required String number,
})

Properties

countryCode

String countryCode
getter/setter pair

The country code of this phone number.

The country code is represented by a string, since some country codes contain a '-'. For example, "1-246" for Barbados or "44-1481" for Guernsey.

See https://countrycode.org/ or https://en.wikipedia.org/wiki/List_of_country_calling_codes

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

isoCode

String? isoCode
getter/setter pair

The ISO 3166 code of the countryCode, if available.

See https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

number

String number
getter/setter pair

The phone number.

The phone number is represented as a string since it may be pretty-printed with spaces.

type

String get type
override

The type of this input data.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.