fromJson static method

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

Creates an Initiator object from a JSON map.

The json parameter is a JSON map representing the Initiator object.

Implementation

static Initiator fromJson(Map<String, dynamic> json) {
  try {
    final initiator = Initiator(
      type: json["type"],
      serviceEndpoint: json["serviceEndpoint"],
      socketId: json["socketId"],
    );

    return initiator;
  } catch (e) {
    rethrow;
  }
}