BatchDeleteConnectionResponse.fromJson constructor

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

Implementation

factory BatchDeleteConnectionResponse.fromJson(Map<String, dynamic> json) {
  return BatchDeleteConnectionResponse(
    errors: (json['Errors'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(k, ErrorDetail.fromJson(e as Map<String, dynamic>))),
    succeeded: (json['Succeeded'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}