toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (version != null) {
    _json[r'version'] = version;
  }
  if (configHash != null) {
    _json[r'config_hash'] = configHash;
  }
  if (internodeUrl != null) {
    _json[r'internode_url'] = internodeUrl;
  }
  if (hostname != null) {
    _json[r'hostname'] = hostname;
  }
  if (lastPing != null) {
    _json[r'last_ping'] = lastPing;
  }
  if (isAlive != null) {
    _json[r'is_alive'] = isAlive;
  }
  return _json;
}