RScanResult.formMap constructor
RScanResult.formMap(
- Map? map
Implementation
factory RScanResult.formMap(Map? map) {
return map == null
? RScanResult()
: RScanResult(
type: map['type'] != null
? RScanBarType.values[map['type'] as int]
: null,
message: map['message'] as String?,
points: map['points'] != null
? (map['points'] as List)
.map(
(data) => RScanPoint(
data['X'],
data['Y'],
),
)
.toList()
: null,
);
}