AddFlowSourcesResponse.fromJson constructor

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

Implementation

factory AddFlowSourcesResponse.fromJson(Map<String, dynamic> json) {
  return AddFlowSourcesResponse(
    flowArn: json['flowArn'] as String?,
    sources: (json['sources'] as List?)
        ?.whereNotNull()
        .map((e) => Source.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}