/// <summary>
 /// Create from service model
 /// </summary>
 /// <param name="model"></param>
 public SupervisorListApiModel(SupervisorListModel model)
 {
     ContinuationToken = model.ContinuationToken;
     if (model.Items != null)
     {
         Items = model.Items
                 .Select(s => new SupervisorApiModel(s))
                 .ToList();
     }
     else
     {
         Items = new List <SupervisorApiModel>();
     }
 }
 /// <summary>
 /// Create api model
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static SupervisorListApiModel ToApiModel(
     this SupervisorListModel model)
 {
     if (model == null)
     {
         return(null);
     }
     return(new SupervisorListApiModel {
         ContinuationToken = model.ContinuationToken,
         Items = model.Items?
                 .Select(s => s.ToApiModel())
                 .ToList()
     });
 }