MethodInfo.fromJson constructor

MethodInfo.fromJson(
  1. Map<String, dynamic> jsonSerialization,
  2. SerializationManager serializationManager
)

Implementation

factory MethodInfo.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return MethodInfo(
    id: serializationManager.deserialize<int?>(jsonSerialization['id']),
    endpoint: serializationManager
        .deserialize<String>(jsonSerialization['endpoint']),
    method:
        serializationManager.deserialize<String>(jsonSerialization['method']),
  );
}