toJson method
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> result = {
'E1': E1,
'E2': E2,
'G12': G12,
'nu12': nu12,
'eta1_12': eta1_12,
'eta2_12': eta2_12,
'Q': Q,
'S': S,
};
if (analysisType == AnalysisType.thermalElastic) {
result.addAll({
'alpha11': alpha_11,
'alpha22': alpha_22,
'alpha12': alpha_12,
});
}
return result;
}