BatchAssociateApprovalRuleTemplateWithRepositoriesOutput.fromJson constructor

BatchAssociateApprovalRuleTemplateWithRepositoriesOutput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BatchAssociateApprovalRuleTemplateWithRepositoriesOutput.fromJson(
    Map<String, dynamic> json) {
  return BatchAssociateApprovalRuleTemplateWithRepositoriesOutput(
    associatedRepositoryNames: (json['associatedRepositoryNames'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    errors: (json['errors'] as List)
        .whereNotNull()
        .map((e) =>
            BatchAssociateApprovalRuleTemplateWithRepositoriesError.fromJson(
                e as Map<String, dynamic>))
        .toList(),
  );
}