Input$QuestActionDefinitionDefinitionSocialMediaInput.fromJson constructor

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

Implementation

factory Input$QuestActionDefinitionDefinitionSocialMediaInput.fromJson(
    Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('socialMedia')) {
    final l$socialMedia = data['socialMedia'];
    result$data['socialMedia'] = (l$socialMedia as String?);
  }
  if (data.containsKey('action')) {
    final l$action = data['action'];
    result$data['action'] = l$action == null
        ? null
        : fromJson$Enum$SocialActionEnum((l$action as String));
  }
  if (data.containsKey('socialContent')) {
    final l$socialContent = data['socialContent'];
    result$data['socialContent'] = l$socialContent == null
        ? null
        : fromJson$Enum$SocialContentTypeEnum((l$socialContent as String));
  }
  if (data.containsKey('url')) {
    final l$url = data['url'];
    result$data['url'] = (l$url as String?);
  }
  if (data.containsKey('hashtag')) {
    final l$hashtag = data['hashtag'];
    result$data['hashtag'] = (l$hashtag as String?);
  }
  return Input$QuestActionDefinitionDefinitionSocialMediaInput._(result$data);
}