Input$DeviceBrandLogoInput.fromJson constructor

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

Implementation

factory Input$DeviceBrandLogoInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('svg')) {
    final l$svg = data['svg'];
    result$data['svg'] = l$svg == null
        ? null
        : Input$PictureInput.fromJson((l$svg as Map<String, dynamic>));
  }
  if (data.containsKey('png')) {
    final l$png = data['png'];
    result$data['png'] = l$png == null
        ? null
        : Input$DeviceBrandLogoPngInput.fromJson(
            (l$png as Map<String, dynamic>));
  }
  if (data.containsKey('icon')) {
    final l$icon = data['icon'];
    result$data['icon'] = (l$icon as String?);
  }
  return Input$DeviceBrandLogoInput._(result$data);
}