Projection.fromJson constructor

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

Implementation

factory Projection.fromJson(Map<String, dynamic> json) {
  return Projection(
    nonKeyAttributes: (json['NonKeyAttributes'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    projectionType: (json['ProjectionType'] as String?)?.toProjectionType(),
  );
}