mirrored_repositories/date_night/Client/app/lib
import 'package:flutter/material.dart';

class ServerErrorModel {
  ServerErrorModel({@required this.error, this.errorCode});

  final String error;
  final int errorCode;

  factory ServerErrorModel.fromServerMap(dynamic data) {
    assert(data['error'] != null);
    return ServerErrorModel(error: data['error'], errorCode: data['errorCode']);
  }
}
