Input$UpdatePictureInput.fromJson constructor

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

Implementation

factory Input$UpdatePictureInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('width')) {
    final l$width = data['width'];
    result$data['width'] = (l$width as int?);
  }
  if (data.containsKey('height')) {
    final l$height = data['height'];
    result$data['height'] = (l$height as int?);
  }
  if (data.containsKey('x')) {
    final l$x = data['x'];
    result$data['x'] = (l$x as int?);
  }
  if (data.containsKey('y')) {
    final l$y = data['y'];
    result$data['y'] = (l$y as int?);
  }
  if (data.containsKey('alt')) {
    final l$alt = data['alt'];
    result$data['alt'] = (l$alt as String?);
  }
  if (data.containsKey('baseUrl')) {
    final l$baseUrl = data['baseUrl'];
    result$data['baseUrl'] = (l$baseUrl as String?);
  }
  if (data.containsKey('path')) {
    final l$path = data['path'];
    result$data['path'] = (l$path as String?);
  }
  return Input$UpdatePictureInput._(result$data);
}