fromMap static method

ShakePickerItem fromMap(
  1. Map data
)

Converts map to object.

Implementation

static ShakePickerItem fromMap(Map data) {
  String key = data['key'] ?? '';
  String? text = data['text'];
  String? icon = data['icon'];
  String? tag = data['tag'];
  String? textRes = data['textRes'];
  String? iconRes = data['iconRes'];

  return ShakePickerItem(key, text,
      icon: icon, tag: tag, textRes: textRes, iconRes: iconRes);
}