ListOutpostsOutput.fromJson constructor

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

Implementation

factory ListOutpostsOutput.fromJson(Map<String, dynamic> json) {
  return ListOutpostsOutput(
    nextToken: json['NextToken'] as String?,
    outposts: (json['Outposts'] as List?)
        ?.whereNotNull()
        .map((e) => Outpost.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}