MBDropdownElementOption.fromDictionary constructor
Initializes the option with the dictionary returned by the MBurger APIs.
- Parameters:
dictionary
: Thedictionary
returned by the APIs.
Implementation
factory MBDropdownElementOption.fromDictionary(
{required Map<String, dynamic> dictionary}) {
String key = dictionary['key'] as String;
String value = dictionary['value'] as String;
return MBDropdownElementOption._(
key: key,
value: value,
);
}