Input$IdentifySourceInput.fromJson constructor

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

Implementation

factory Input$IdentifySourceInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  final l$source = data['source'];
  result$data['source'] = Input$ScraperSourceInput.fromJson(
    (l$source as Map<String, dynamic>),
  );
  if (data.containsKey('options')) {
    final l$options = data['options'];
    result$data['options'] = l$options == null
        ? null
        : Input$IdentifyMetadataOptionsInput.fromJson(
            (l$options as Map<String, dynamic>),
          );
  }
  return Input$IdentifySourceInput._(result$data);
}