toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (name != null) {
    _json[r'name'] = name;
  }
  if (token != null) {
    _json[r'token'] = token;
  }
  if (iotLicenseType != null) {
    _json[r'iot_license_type'] = iotLicenseType;
  }
  if (location != null) {
    _json[r'location'] = location;
  }
  if (protocol != null) {
    _json[r'protocol'] = protocol;
  }
  if (status != null) {
    _json[r'status'] = status;
  }
  if (lastOnline != null) {
    _json[r'last_online'] = lastOnline;
  }
  return _json;
}