import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:flutter/foundation.dart';
part 'failure.freezed.dart';
part 'failure.g.dart';

@freezed
abstract class Failure with _$Failure {
  const factory Failure({
    String? code,
    String? message,
  }) = _Failure;

  factory Failure.fromJson(Map<String, Object?> json) =>
      _$FailureFromJson(json);
}
