fromJson static method

CaptureCount fromJson(
  1. String value
)

Creates a new instance from a JSON value.

Implementation

static CaptureCount fromJson(String value) =>
    CaptureCount.values.firstWhere((e) => e.name == value);