Input$UserEducationInput.fromJson constructor

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

Implementation

factory Input$UserEducationInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('level')) {
    final l$level = data['level'];
    result$data['level'] = l$level == null
        ? null
        : fromJson$Enum$AcademicLevel((l$level as String));
  }
  if (data.containsKey('name')) {
    final l$name = data['name'];
    result$data['name'] = (l$name as String?);
  }
  if (data.containsKey('description')) {
    final l$description = data['description'];
    result$data['description'] = (l$description as String?);
  }
  if (data.containsKey('tags')) {
    final l$tags = data['tags'];
    result$data['tags'] =
        (l$tags as List<dynamic>?)?.map((e) => (e as String)).toList();
  }
  if (data.containsKey('from')) {
    final l$from = data['from'];
    result$data['from'] = l$from == null ? null : dateTimeFromJson(l$from);
  }
  if (data.containsKey('to')) {
    final l$to = data['to'];
    result$data['to'] = l$to == null ? null : dateTimeFromJson(l$to);
  }
  if (data.containsKey('graduated')) {
    final l$graduated = data['graduated'];
    result$data['graduated'] = (l$graduated as bool?);
  }
  if (data.containsKey('city')) {
    final l$city = data['city'];
    result$data['city'] = (l$city as String?);
  }
  if (data.containsKey('country')) {
    final l$country = data['country'];
    result$data['country'] = (l$country as String?);
  }
  return Input$UserEducationInput._(result$data);
}