NonResourceAttributes.fromJson constructor

NonResourceAttributes.fromJson(
  1. Map<String, dynamic> json
)

Creates a NonResourceAttributes from JSON data.

Implementation

factory NonResourceAttributes.fromJson(Map<String, dynamic> json) {
  final tempPathJson = json['path'];
  final tempVerbJson = json['verb'];

  final String? tempPath = tempPathJson;
  final String? tempVerb = tempVerbJson;

  return NonResourceAttributes(
    path: tempPath,
    verb: tempVerb,
  );
}