GetReplicationRunsResponse.fromJson constructor

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

Implementation

factory GetReplicationRunsResponse.fromJson(Map<String, dynamic> json) {
  return GetReplicationRunsResponse(
    nextToken: json['nextToken'] as String?,
    replicationJob: json['replicationJob'] != null
        ? ReplicationJob.fromJson(
            json['replicationJob'] as Map<String, dynamic>)
        : null,
    replicationRunList: (json['replicationRunList'] as List?)
        ?.whereNotNull()
        .map((e) => ReplicationRun.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}