ListSizeConstraintSetsResponse.fromJson constructor

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

Implementation

factory ListSizeConstraintSetsResponse.fromJson(Map<String, dynamic> json) {
  return ListSizeConstraintSetsResponse(
    nextMarker: json['NextMarker'] as String?,
    sizeConstraintSets: (json['SizeConstraintSets'] as List?)
        ?.whereNotNull()
        .map((e) =>
            SizeConstraintSetSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}