EntitlementUsage.fromJson constructor

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

Implementation

factory EntitlementUsage.fromJson(Map<String, dynamic> json) {
  return EntitlementUsage(
    consumedValue: json['ConsumedValue'] as String,
    name: json['Name'] as String,
    unit: (json['Unit'] as String).toEntitlementDataUnit(),
    maxCount: json['MaxCount'] as String?,
  );
}