toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (connectionState != null) 'connectionState': connectionState!,
      if (host != null) 'host': host!,
      if (location != null) 'location': location!,
      if (name != null) 'name': name!,
      if (serviceAttachment != null) 'serviceAttachment': serviceAttachment!,
      if (state != null) 'state': state!,
    };