LongTaskStatusName.fromJson constructor

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

Implementation

factory LongTaskStatusName.fromJson(Map<String, Object?> json) {
  return LongTaskStatusName(
    key: json[r'key'] as String? ?? '',
    args: (json[r'args'] as List<Object?>?)
            ?.map((i) => i as Map<String, Object?>? ?? {})
            .toList() ??
        [],
  );
}