Convert the Part content to json format.
@override Object toJson() => { 'functionCall': { 'name': name, 'args': args, if (id != null) 'id': id, } };