Rule.fromJson constructor

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

Implementation

factory Rule.fromJson(Map<String, dynamic> json) {
  return Rule(
    arn: json['Arn'] as String?,
    description: json['Description'] as String?,
    eventBusName: json['EventBusName'] as String?,
    eventPattern: json['EventPattern'] as String?,
    managedBy: json['ManagedBy'] as String?,
    name: json['Name'] as String?,
    roleArn: json['RoleArn'] as String?,
    scheduleExpression: json['ScheduleExpression'] as String?,
    state: (json['State'] as String?)?.toRuleState(),
  );
}