AttributeValue.fromJson constructor

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

Implementation

factory AttributeValue.fromJson(Map<String, dynamic> json) {
  return AttributeValue(
    n: json['N'] as double?,
    s: json['S'] as String?,
    sdm: (json['SDM'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as double)),
    sl: (json['SL'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}