GetMyPhoneResponse constructor Null safety

GetMyPhoneResponse(
  1. {ObjectDetails? details,
  2. Phone? phone}
)

Implementation

factory GetMyPhoneResponse({
  $12.ObjectDetails? details,
  $18.Phone? phone,
}) {
  final _result = create();
  if (details != null) {
    _result.details = details;
  }
  if (phone != null) {
    _result.phone = phone;
  }
  return _result;
}