tryFromJson static method
Creates an instance of this enum from the provided json
data.
Returns null
if json
is omitted.
Throws an ArgumentError if json
cannot be matched to an existing variant.
Commitment.tryFromJson('processed');
Implementation
static Commitment? tryFromJson(final String? json) =>
json != null ? Commitment.fromJson(json) : null;