ShortcutArg.fromMap constructor

ShortcutArg.fromMap(
  1. Map map
)

Implementation

factory ShortcutArg.fromMap(Map<dynamic, dynamic> map) {
  return ShortcutArg(
    id: map['id'] as String,
    title: map['title'] as String,
    iconResourceName:
        (map['iconResourceName'] is String) ? map['iconResourceName'] : '',
    androidArg: (map[keyAndroidArg] is Map<dynamic, dynamic>)
        ? AndroidArg.fromMap(map[keyAndroidArg])
        : null,
    iosArg: (map[keyIosArg] is Map<dynamic, dynamic>)
        ? IosArg.fromMap(map[keyIosArg])
        : null,
  );
}