AttributeValue.fromJson constructor

AttributeValue.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AttributeValue.fromJson(Map<String, dynamic> json) {
  return AttributeValue(
    b: _s.decodeNullableUint8List(json['B'] as String?),
    bs: (json['BS'] as List?)
        ?.whereNotNull()
        .map((e) => _s.decodeUint8List(e as String))
        .toList(),
    n: json['N'] as String?,
    ns: (json['NS'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    s: json['S'] as String?,
    ss: (json['SS'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}