copyWith method

ApiEnvelope copyWith({
  1. bool? success,
  2. String? message,
  3. Map<String, dynamic>? raw,
})

Implementation

ApiEnvelope copyWith(
    {bool? success, String? message, Map<String, dynamic>? raw}) {
  return ApiEnvelope(
      success: success ?? this.success,
      message: message ?? this.message,
      raw: raw ?? this.raw);
}