StorageError.fromJson constructor Null safety

StorageError.fromJson(
  1. dynamic json
)

Implementation

StorageError.fromJson(dynamic json)
    : assert(json is Map<String, dynamic>),
      message = json['message'] as String,
      error = json['error'] as String?,
      statusCode = json['statusCode'] as String?;