message property

String? message

Extract the error message from cloudinary

Implementation

String? get message {
  try {
    final Map<String, dynamic> json = jsonDecode(responseString);
    final Map<String, dynamic> error = json['error'];
    return error['message'];
  } catch (e) {
    // unable to extract error message
    return null;
  }
}