toMap method

  1. @override
Map<String, Object?> toMap()
override

Implementation

@override
Map<String, Object?> toMap() {
  return {
    if (icons != null) 'icons': icons!.map((e) => e.toMap()).toList(),
    'name': name,
    if (title != null) 'title': title,
    if (description != null) 'description': description,
    if (arguments != null)
      'arguments': arguments!.map((e) => e.toMap()).toList(),
    if ($meta != null) '_meta': $meta!.toMap(),
  };
}