fromJSON static method
Convert a JSON to this DModel.
DModel model = DModel.fromJSON(json);
Implementation
static LinkModel fromJSON(JSON value) {
return LinkModel(
method: HttpMethod.values.firstWhere(
(e) => e.name.toUpperCase() == value.of<String>('method').toUpperCase(),
orElse: () => HttpMethod.options,
),
description: value.of<String?>('description'),
reference: value.of('reference'),
);
}