import 'package:app_hit_a_wod/src/models/plan.model.dart';
import 'package:json_annotation/json_annotation.dart';

part 'subscription.model.g.dart';

@JsonSerializable()
class Subscription {

  Subscription();

  factory Subscription.fromJson(Map<String, dynamic> json) => _$SubscriptionFromJson(json);
  Map<String, dynamic> toJson() => _$SubscriptionToJson(this);

  int id;
  int company_id;
  int plan_id;
  DateTime start_date;
  DateTime end_date;
  String name;
  String stripe_id;
  String stripe_status;
  String stripe_plan;
  int quantity;
  bool active;
  Plan plan;
  DateTime ends_at;

}