GetOutcomesResult.fromJson constructor

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

Implementation

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