|
|
@ -1,6 +1,5 @@ |
|
|
|
// ignore_for_file: camel_case_types |
|
|
|
// ignore_for_file: camel_case_types |
|
|
|
// ignore_for_file: public_member_api_docs |
|
|
|
// ignore_for_file: public_member_api_docs |
|
|
|
import 'dart:convert'; |
|
|
|
|
|
|
|
import 'dart:typed_data'; |
|
|
|
import 'dart:typed_data'; |
|
|
|
|
|
|
|
|
|
|
|
import 'package:built_collection/built_collection.dart'; |
|
|
|
import 'package:built_collection/built_collection.dart'; |
|
|
@ -34,11 +33,9 @@ class ProvisioningApiApiException extends DynamiteApiException { |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
static Future<ProvisioningApiApiException> fromResponse(final HttpClientResponse response) async { |
|
|
|
static Future<ProvisioningApiApiException> fromResponse(final HttpClientResponse response) async { |
|
|
|
final data = await response.bodyBytes; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String body; |
|
|
|
String body; |
|
|
|
try { |
|
|
|
try { |
|
|
|
body = utf8.decode(data); |
|
|
|
body = await response.body; |
|
|
|
} on FormatException { |
|
|
|
} on FormatException { |
|
|
|
body = 'binary'; |
|
|
|
body = 'binary'; |
|
|
|
} |
|
|
|
} |
|
|
|