import 'package:flutter/cupertino.dart';

class ModelEvent_Artist {
  final int id;
  final String note;
  final String person_artist_name;
  final int person_artist_id;

  ModelEvent_Artist(
      {@required this.id,
      @required this.note,
      @required this.person_artist_name,
        @required this.person_artist_id});

  factory ModelEvent_Artist.fromJson(Map<String, dynamic> json) {
    return ModelEvent_Artist(
      id: json['id'],
      note: json['note'],
      person_artist_name: json['id_person_artist']['name'],
      person_artist_id: json['id_person_artist']['id'],
    );
  }
}
