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