toJsonMap method
Converts this Layer to a JSON Map.
Implementation
Map<String, dynamic> toJsonMap() {
return {
'format': format,
'type': layerType,
'neurons': neurons.length,
'bias': withBiasNeuron,
'activation': activationFunction.toJsonMap(),
if (this is! LayerOutput) 'weights': weights.map((e) => e.values).toList()
};
}