SPDataModel.fromMap constructor

SPDataModel.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory SPDataModel.fromMap(Map<String, dynamic> map) {
  return SPDataModel(
    message: map['message'],
    participant: SPParticipant.fromMap(
      Map<String, dynamic>.from(
        map['participant'],
      ),
    ),
  );
}