MBGeneralElement constructor

MBGeneralElement({
  1. required Map<String, dynamic> dictionary,
})

Initializes a general element with the dictionary returned by the MBurger APIs.

  • Parameters:
    • dictionary: The dictionary returned by the APIs.

Implementation

factory MBGeneralElement({required Map<String, dynamic> dictionary}) {
  dynamic value = dictionary['value'];
  return MBGeneralElement._(
    dictionary: dictionary,
    value: value,
  );
}