Sun.fromMap constructor

Sun.fromMap(
  1. Map map
)

Implementation

Sun.fromMap(Map<dynamic, dynamic> map) {
  sunrise = map['sunrise'] as String;
  sunset = map['sunset'] as String;
}