core.Map<core.String, core.dynamic> toJson() => { if (name != null) 'name': name!, if (osVersion != null) 'osVersion': osVersion!, if (resources != null) 'resources': resources!, };