@override Map<String, Object?> toJson() => { 'function': true, if (returns != null) 'returns': returns!.toJson(), };