tryToCalculateBatteryDecommissionThreshold static method

int? tryToCalculateBatteryDecommissionThreshold(
  1. Map<String, dynamic> json
)

Implementation

static int? tryToCalculateBatteryDecommissionThreshold(Map<String, dynamic> json) =>
    switch (json['deviceManufacturer']) { 'ZEBRA' => switch (json['batteryType']) {  200 || 201 || 206 => 400, _ => null}, _ => null };