ShortcutArg.fromMap constructor

ShortcutArg.fromMap(
  1. Map map
)

Implementation

factory ShortcutArg.fromMap(Map<dynamic, dynamic> map) {
  return ShortcutArg(
      id: map['id'] as String,
      shortLabel: map['shortLabel'] as String,
      longLabel: (map['longLabel'] is String) ? map['longLabel'] : '',
      iconResourceName: (map['iconResourceName'] is String) ? map['iconResourceName'] : '',
      uri: (map['uri'] is String) ? map['uri'] : '',
      enabled: (map['enabled'] is bool) ? map['enabled'] : true);
}