BatchDetectEntitiesResponse.fromJson constructor

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

Implementation

factory BatchDetectEntitiesResponse.fromJson(Map<String, dynamic> json) {
  return BatchDetectEntitiesResponse(
    errorList: (json['ErrorList'] as List)
        .whereNotNull()
        .map((e) => BatchItemError.fromJson(e as Map<String, dynamic>))
        .toList(),
    resultList: (json['ResultList'] as List)
        .whereNotNull()
        .map((e) =>
            BatchDetectEntitiesItemResult.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}