Input$WebsiteIntegrationMulticurrencyInput.fromJson constructor

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

Implementation

factory Input$WebsiteIntegrationMulticurrencyInput.fromJson(
    Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('active')) {
    final l$active = data['active'];
    result$data['active'] = (l$active as bool?);
  }
  if (data.containsKey('currencies')) {
    final l$currencies = data['currencies'];
    result$data['currencies'] = (l$currencies as List<dynamic>?)
        ?.map((e) =>
            Input$WebsiteIntegrationMulticurrencyCurrencyInput.fromJson(
                (e as Map<String, dynamic>)))
        .toList();
  }
  return Input$WebsiteIntegrationMulticurrencyInput._(result$data);
}