Input$IsLoginForTargetExistInput.fromJson constructor

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

Implementation

factory Input$IsLoginForTargetExistInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('login')) {
    final l$login = data['login'];
    result$data['login'] = (l$login as String?);
  }
  if (data.containsKey('phone')) {
    final l$phone = data['phone'];
    result$data['phone'] = l$phone == null
        ? null
        : Input$IPhoneInput.fromJson((l$phone as Map<String, dynamic>));
  }
  final l$target = data['target'];
  result$data['target'] =
      Input$TargetACIInput.fromJson((l$target as Map<String, dynamic>));
  return Input$IsLoginForTargetExistInput._(result$data);
}