MBGeneralElement constructor
Initializes a general element with the dictionary returned by the MBurger APIs.
- Parameters:
dictionary
: Thedictionary
returned by the APIs.
Implementation
factory MBGeneralElement({required Map<String, dynamic> dictionary}) {
dynamic value = dictionary['value'];
return MBGeneralElement._(
dictionary: dictionary,
value: value,
);
}