ListBundlesResult.fromJson constructor

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

Implementation

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