Input$ErpIntegrationUpdateInput.fromJson constructor

Input$ErpIntegrationUpdateInput.fromJson(
  1. Map<String, dynamic> data
)

Implementation

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