Replay.fromJson constructor

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

Implementation

factory Replay.fromJson(Map<String, dynamic> json) {
  return Replay(
    eventEndTime: timeStampFromJson(json['EventEndTime']),
    eventLastReplayedTime: timeStampFromJson(json['EventLastReplayedTime']),
    eventSourceArn: json['EventSourceArn'] as String?,
    eventStartTime: timeStampFromJson(json['EventStartTime']),
    replayEndTime: timeStampFromJson(json['ReplayEndTime']),
    replayName: json['ReplayName'] as String?,
    replayStartTime: timeStampFromJson(json['ReplayStartTime']),
    state: (json['State'] as String?)?.toReplayState(),
    stateReason: json['StateReason'] as String?,
  );
}