toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  if (_$data.containsKey('target')) {
    final l$target = target;
    result$data['target'] = l$target?.toJson();
  }
  if (_$data.containsKey('url')) {
    final l$url = url;
    result$data['url'] = l$url;
  }
  if (_$data.containsKey('username')) {
    final l$username = username;
    result$data['username'] = l$username;
  }
  if (_$data.containsKey('password')) {
    final l$password = password;
    result$data['password'] = l$password;
  }
  if (_$data.containsKey('recurrence')) {
    final l$recurrence = recurrence;
    result$data['recurrence'] = l$recurrence == null
        ? null
        : toJson$Enum$ErpIntegrationCycleEnum(l$recurrence);
  }
  if (_$data.containsKey('vendor')) {
    final l$vendor = vendor;
    result$data['vendor'] =
        l$vendor == null ? null : toJson$Enum$ErpVendorEnum(l$vendor);
  }
  if (_$data.containsKey('active')) {
    final l$active = active;
    result$data['active'] = l$active;
  }
  final l$id = id;
  result$data['id'] = l$id;
  return result$data;
}