DescribeEventSourceResponse.fromJson constructor

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

Implementation

factory DescribeEventSourceResponse.fromJson(Map<String, dynamic> json) {
  return DescribeEventSourceResponse(
    arn: json['Arn'] as String?,
    createdBy: json['CreatedBy'] as String?,
    creationTime: timeStampFromJson(json['CreationTime']),
    expirationTime: timeStampFromJson(json['ExpirationTime']),
    name: json['Name'] as String?,
    state: (json['State'] as String?)?.toEventSourceState(),
  );
}