fromJson static method

EllipticCurve? fromJson(
  1. String? json
)

Implementation

static EllipticCurve? fromJson(String? json) {
  if (json == null) return null;
  return EllipticCurve.values.firstWhere((element) => element.code == json);
}