AXValueSource.fromJson constructor
AXValueSource.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AXValueSource.fromJson(Map<String, dynamic> json) {
return AXValueSource(
type: AXValueSourceType.fromJson(json['type'] as String),
value: json.containsKey('value')
? AXValue.fromJson(json['value'] as Map<String, dynamic>)
: null,
attribute:
json.containsKey('attribute') ? json['attribute'] as String : null,
attributeValue: json.containsKey('attributeValue')
? AXValue.fromJson(json['attributeValue'] as Map<String, dynamic>)
: null,
superseded:
json.containsKey('superseded') ? json['superseded'] as bool : null,
nativeSource: json.containsKey('nativeSource')
? AXValueNativeSourceType.fromJson(json['nativeSource'] as String)
: null,
nativeSourceValue: json.containsKey('nativeSourceValue')
? AXValue.fromJson(json['nativeSourceValue'] as Map<String, dynamic>)
: null,
invalid: json.containsKey('invalid') ? json['invalid'] as bool : null,
invalidReason: json.containsKey('invalidReason')
? json['invalidReason'] as String
: null,
);
}