GroupVersionForDiscovery.fromJson constructor

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

Creates a GroupVersionForDiscovery from JSON data.

Implementation

factory GroupVersionForDiscovery.fromJson(Map<String, dynamic> json) {
  final tempGroupVersionJson = json['groupVersion'];
  final tempVersionJson = json['version'];

  final String tempGroupVersion = tempGroupVersionJson;
  final String tempVersion = tempVersionJson;

  return GroupVersionForDiscovery(
    groupVersion: tempGroupVersion,
    version: tempVersion,
  );
}