ActionState.fromJson constructor

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

Implementation

factory ActionState.fromJson(Map<String, dynamic> json) {
  return ActionState(
    actionName: json['actionName'] as String?,
    currentRevision: json['currentRevision'] != null
        ? ActionRevision.fromJson(
            json['currentRevision'] as Map<String, dynamic>)
        : null,
    entityUrl: json['entityUrl'] as String?,
    latestExecution: json['latestExecution'] != null
        ? ActionExecution.fromJson(
            json['latestExecution'] as Map<String, dynamic>)
        : null,
    revisionUrl: json['revisionUrl'] as String?,
  );
}