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