QuotaSettings.fromJson constructor

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

Implementation

factory QuotaSettings.fromJson(Map<String, dynamic> json) {
  return QuotaSettings(
    limit: json['limit'] as int?,
    offset: json['offset'] as int?,
    period: (json['period'] as String?)?.toQuotaPeriodType(),
  );
}