DocumentAttributeValue.fromJson constructor

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

Implementation

factory DocumentAttributeValue.fromJson(Map<String, dynamic> json) {
  return DocumentAttributeValue(
    dateValue: timeStampFromJson(json['DateValue']),
    longValue: json['LongValue'] as int?,
    stringListValue: (json['StringListValue'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    stringValue: json['StringValue'] as String?,
  );
}