Input$NotificationIntegrationPlatformInput.fromJson constructor

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

Implementation

factory Input$NotificationIntegrationPlatformInput.fromJson(
    Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('enable')) {
    final l$enable = data['enable'];
    result$data['enable'] = (l$enable as bool?);
  }
  if (data.containsKey('internal')) {
    final l$internal = data['internal'];
    result$data['internal'] = (l$internal as bool?);
  }
  if (data.containsKey('api')) {
    final l$api = data['api'];
    result$data['api'] = l$api == null
        ? null
        : Input$NotificationIntegrationPlatformAPIInput.fromJson(
            (l$api as Map<String, dynamic>));
  }
  return Input$NotificationIntegrationPlatformInput._(result$data);
}