Input$LocationFilterInput.fromJson constructor

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

Implementation

factory Input$LocationFilterInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('locationType')) {
    final l$locationType = data['locationType'];
    result$data['locationType'] = (l$locationType as List<dynamic>?)
        ?.map((e) => fromJson$Enum$LocationTypeEnum((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);
  }
  return Input$LocationFilterInput._(result$data);
}