buildArguments method

Map<String, dynamic> buildArguments()

Constructs the map of arguments which is passed to the plugin.

Implementation

Map<String, dynamic> buildArguments() {
  return {
    if (action != null) 'action': action,
    if (flags != null) 'flags': convertFlags(flags!),
    if (category != null) 'category': category,
    if (data != null) 'data': data,
    if (arguments != null) 'arguments': arguments,
    if (arrayArguments != null) 'arrayArguments': arrayArguments,
    if (package != null) ...{
      'package': package,
      if (componentName != null) 'componentName': componentName,
    },
    if (type != null) 'type': type,
  };
}