toJson method

  1. @override
Map<String, dynamic> toJson()
override

Serializes to wire JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  'type': type,
  'command': command,
  if (args != null) 'args': args,
  if (env != null) 'env': env,
  if (alwaysLoad != null) 'alwaysLoad': alwaysLoad,
};