SdkResponse constructor

const SdkResponse({
  1. required bool ok,
  2. required ResponseSource source,
  3. int? statusCode,
  4. String? message,
  5. dynamic data,
  6. SdkError? error,
  7. Map<String, dynamic> meta = const {},
})

Creates a normalized SDK response.

Implementation

const SdkResponse({
  required this.ok,
  required this.source,
  this.statusCode,
  this.message,
  this.data,
  this.error,
  this.meta = const {},
});