GRPCAction.fromJson constructor

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

Creates a GRPCAction from JSON data.

Implementation

factory GRPCAction.fromJson(Map<String, dynamic> json) {
  final tempPortJson = json['port'];
  final tempServiceJson = json['service'];

  final int tempPort = tempPortJson;
  final String? tempService = tempServiceJson;

  return GRPCAction(
    port: tempPort,
    service: tempService,
  );
}