ListOfferingsResult.fromJson constructor

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

Implementation

factory ListOfferingsResult.fromJson(Map<String, dynamic> json) {
  return ListOfferingsResult(
    nextToken: json['nextToken'] as String?,
    offerings: (json['offerings'] as List?)
        ?.whereNotNull()
        .map((e) => Offering.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}