GroupDesc.fromJson constructor

GroupDesc.fromJson(
  1. JsonMap rawData
)

Implementation

factory GroupDesc.fromJson(JsonMap rawData) {
  return GroupDesc(
    name: rawData[GroupGetArgument.name.argName] as String,
    honorsSessionLimits:
        rawData[GroupGetArgument.honorSessionLimits.argName] as bool,
    speedLimitDownEnabled:
        rawData[GroupGetArgument.speedLimitDownEnabled.argName] as bool,
    speedLimitDown: rawData[GroupGetArgument.speedLimitDown.argName] as num,
    speedLimitUpEnabled:
        rawData[GroupGetArgument.speedLimitUpEnabled.argName] as bool,
    speedLimitUp: rawData[GroupGetArgument.speedLimitUp.argName] as num,
  );
}