AttributeValue.fromJson constructor
AttributeValue.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AttributeValue.fromJson(Map<String, dynamic> json) {
return AttributeValue(
b: _s.decodeNullableUint8List(json['B'] as String?),
boolValue: json['BOOL'] as bool?,
bs: (json['BS'] as List?)
?.whereNotNull()
.map((e) => _s.decodeUint8List(e as String))
.toList(),
l: (json['L'] as List?)
?.whereNotNull()
.map((e) => AttributeValue.fromJson(e as Map<String, dynamic>))
.toList(),
m: (json['M'] as Map<String, dynamic>?)?.map((k, e) =>
MapEntry(k, AttributeValue.fromJson(e as Map<String, dynamic>))),
n: json['N'] as String?,
ns: (json['NS'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
nullValue: json['NULL'] as bool?,
s: json['S'] as String?,
ss: (json['SS'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}