Entitlement.fromJson constructor

Entitlement.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Entitlement.fromJson(Map<String, dynamic> json) {
  return Entitlement(
    name: json['Name'] as String,
    unit: (json['Unit'] as String).toEntitlementUnit(),
    allowCheckIn: json['AllowCheckIn'] as bool?,
    maxCount: json['MaxCount'] as int?,
    overage: json['Overage'] as bool?,
    value: json['Value'] as String?,
  );
}