toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': name,
    if (title != null) 'title': title,
    'description': description,
    'arguments': arguments.map((arg) => arg.toJson()).toList(),
    if (icons != null) 'icons': icons,
    if (meta != null) '_meta': meta,
  };
}