toJson method

Map<String, dynamic> toJson()

Converts to JSON.

Implementation

Map<String, dynamic> toJson() => {
  if (id != null) 'id': id,
  'name': name,
  if (args != null) 'args': args,
};