toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final icon = this.icon;
  return {
    'desc': desc,
    'fields': fields,
    if (icon != null) 'icon': icon,
    'network_id': networkId,
  };
}