SessionAdjustableQuantity.fromJson constructor

SessionAdjustableQuantity.fromJson(
  1. Object? json
)

Implementation

factory SessionAdjustableQuantity.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionAdjustableQuantity(
    enabled: (map['enabled'] as bool),
    maximum: map['maximum'] == null ? null : (map['maximum'] as num).toInt(),
    minimum: map['minimum'] == null ? null : (map['minimum'] as num).toInt(),
  );
}