docs: def _from_dict(cls, _dict):
          """Initialize a Batches object from a json dictionary."""
          args = {}
          if 'batches' in _dict:
              args['batches'] = [
                  BatchStatus._from_dict(x) for x in (_dict.get('batches'))
              ]
          return cls(**args)