SMSMessageActivity.fromJson constructor

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

Implementation

factory SMSMessageActivity.fromJson(Map<String, dynamic> json) {
  return SMSMessageActivity(
    messageConfig: json['MessageConfig'] != null
        ? JourneySMSMessage.fromJson(
            json['MessageConfig'] as Map<String, dynamic>)
        : null,
    nextActivity: json['NextActivity'] as String?,
    templateName: json['TemplateName'] as String?,
    templateVersion: json['TemplateVersion'] as String?,
  );
}