toMap method

Map<String, dynamic> toMap()

Converts the config to a map for the method channel.

Implementation

Map<String, dynamic> toMap() {
  return {
    'isRequired': isRequired,
    'format': format.name,
    'isPhoneNumberRequired': isPhoneNumberRequired,
  };
}