@override Object toJson() => { if (functionCalls.isNotDefault) 'functionCalls': [for (final i in functionCalls) i.toJson()], };