LongTask.fromJson constructor

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

Implementation

factory LongTask.fromJson(Map<String, Object?> json) {
  return LongTask(
    ari: json[r'ari'] as String?,
    id: json[r'id'] as String? ?? '',
    links: LongTaskLinks.fromJson(
        json[r'links'] as Map<String, Object?>? ?? const {}),
  );
}