toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (createdAt != null) 'createdAt': createdAt!,
if (hostnames != null) 'hostnames': hostnames!,
if (lastModifiedAt != null) 'lastModifiedAt': lastModifiedAt!,
if (name != null) 'name': name!,
if (state != null) 'state': state!,
};