JqlFunctionPrecomputationBean.fromJson constructor

JqlFunctionPrecomputationBean.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory JqlFunctionPrecomputationBean.fromJson(Map<String, Object?> json) {
  return JqlFunctionPrecomputationBean(
    arguments: (json[r'arguments'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    created: DateTime.tryParse(json[r'created'] as String? ?? ''),
    field: json[r'field'] as String?,
    functionKey: json[r'functionKey'] as String?,
    functionName: json[r'functionName'] as String?,
    id: json[r'id'] as String?,
    operator$: json[r'operator'] as String?,
    updated: DateTime.tryParse(json[r'updated'] as String? ?? ''),
    used: DateTime.tryParse(json[r'used'] as String? ?? ''),
    value: json[r'value'] as String?,
  );
}