DescribeReplayResponse.fromJson constructor

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

Implementation

factory DescribeReplayResponse.fromJson(Map<String, dynamic> json) {
  return DescribeReplayResponse(
    description: json['Description'] as String?,
    destination: json['Destination'] != null
        ? ReplayDestination.fromJson(
            json['Destination'] as Map<String, dynamic>)
        : null,
    eventEndTime: timeStampFromJson(json['EventEndTime']),
    eventLastReplayedTime: timeStampFromJson(json['EventLastReplayedTime']),
    eventSourceArn: json['EventSourceArn'] as String?,
    eventStartTime: timeStampFromJson(json['EventStartTime']),
    replayArn: json['ReplayArn'] as String?,
    replayEndTime: timeStampFromJson(json['ReplayEndTime']),
    replayName: json['ReplayName'] as String?,
    replayStartTime: timeStampFromJson(json['ReplayStartTime']),
    state: (json['State'] as String?)?.toReplayState(),
    stateReason: json['StateReason'] as String?,
  );
}