toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {
    'E1': E1,
    'E2': E2,
    'G12': G12,
    'nu12': nu12,
    'eta121': eta121,
    'eta122': eta122,
  };
  if (analysisType == AnalysisType.thermalElastic) {
    result.addAll({
      'alpha11': alpha11,
      'alpha22': alpha22,
      'alpha12': alpha12,
    });
  }
  return result;
}