Input$WebsiteIntegrationMultilanguageInput.fromJson constructor

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

Implementation

factory Input$WebsiteIntegrationMultilanguageInput.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('languages')) {
    final l$languages = data['languages'];
    result$data['languages'] = (l$languages as List<dynamic>?)
        ?.map((e) =>
            Input$WebsiteIntegrationMultilanguageLanguageInput.fromJson(
                (e as Map<String, dynamic>)))
        .toList();
  }
  return Input$WebsiteIntegrationMultilanguageInput._(result$data);
}