ConnState.fromJson(Map<String, dynamic> json) : id = json[idKey] as String, range = DataRange(json[startKey] as int, json[endKey] as int);