fromJson static method

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

Implementation

static AssingVariableFromStaticDateTimeValue fromJson(
    Map<String, dynamic> json) {
  return AssingVariableFromStaticDateTimeValue(
    id: json['id'],
    cubitID: json['cubit_id'],
    stateID: json['state_id'],
    variableID: json['variable_id'],
    assingFromType: AssignVariableActionTypes.valueFromStaticDateTime,
    jsonKey: json['json_key'],
    value: DateTime.parse(json['value']),
    targetIndex: json['target_index'],
  );
}