factory GenerateRequest.fromJson(Map<String, Object?> json) => GenerateRequest( label: json["label"] == null ? null : json["label"] as String, );