toMap method
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'connectionState': connectionState,
'host': host,
'location': location,
'name': name,
'serviceAttachment': serviceAttachment,
'state': state,
};
}