GetBundlesResult.fromJson constructor

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

Implementation

factory GetBundlesResult.fromJson(Map<String, dynamic> json) {
  return GetBundlesResult(
    bundles: (json['bundles'] as List?)
        ?.whereNotNull()
        .map((e) => Bundle.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageToken: json['nextPageToken'] as String?,
  );
}