PartitionError.fromJson constructor

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

Implementation

factory PartitionError.fromJson(Map<String, dynamic> json) {
  return PartitionError(
    errorDetail: json['ErrorDetail'] != null
        ? ErrorDetail.fromJson(json['ErrorDetail'] as Map<String, dynamic>)
        : null,
    partitionValues: (json['PartitionValues'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}